Changeset 4050
- Timestamp:
- Dec 7, 2007, 1:57:26 PM (15 years ago)
- Location:
- branches/2.5-stable/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5-stable/src/clients/web/net/sf/basedb/clients/web/plugins/SimpleExport.java
r3991 r4050 468 468 template.writeHeaders(); 469 469 470 intnumExported = 0;470 long numExported = 0; 471 471 ResultIterator result = null; 472 472 try … … 506 506 if (progress != null) 507 507 { 508 int percent = (int)(100 f* numExported / totalItems);508 int percent = (int)(100L * numExported / totalItems); 509 509 progress.display(percent, numExported + " of " + totalItems + " done."); 510 510 } -
branches/2.5-stable/src/core/net/sf/basedb/core/Affymetrix.java
r3820 r4050 357 357 if (hasProgress && (index % progressInterval == 0)) 358 358 { 359 int percent = 5 + 90 * index / numProbesets;359 int percent = 5 + (int)(90L * (long)index / numProbesets); 360 360 int remain = numProbesets - index; 361 361 String created = create ? "; " + numCreated + " created" : ""; -
branches/2.5-stable/src/core/net/sf/basedb/core/RawBioAssay.java
r4020 r4050 1122 1122 DataQuery<RawData> rawQuery = getRawData(); 1123 1123 DataResultIterator<RawData> result = rawQuery.iterate(dc); 1124 intnumValidated = 0;1124 long numValidated = 0; 1125 1125 int numTotal = getNumDbSpots(); 1126 1126 while (result.hasNext()) … … 1183 1183 if (progress != null && numValidated % 100 == 0) 1184 1184 { 1185 int percent = 10 + ( 90 * numValidated) / numTotal;1185 int percent = 10 + ((int)(90L * numValidated) / numTotal); 1186 1186 progress.display(percent, "Validated " + numValidated + " of " + numTotal + " spots."); 1187 1187 } -
branches/2.5-stable/src/core/net/sf/basedb/core/SpotImages.java
r3820 r4050 472 472 if (progress != null) 473 473 { 474 intspotsDone = spotImagesPerImage*imageNumber;475 int percent = 10 + 90 * spotsDone / totalSpots;474 long spotsDone = spotImagesPerImage*imageNumber; 475 int percent = 10 + (int)(90L * spotsDone / totalSpots); 476 476 progress.display(percent, "Generating spot images ("+spotsDone+" done)..."); 477 477 } -
branches/2.5-stable/src/core/net/sf/basedb/util/BioAssaySetFilterUtil.java
r4017 r4050 123 123 } 124 124 125 intspotsDone = 0;125 long spotsDone = 0; 126 126 int spotsAfter = 0; 127 127 if (progress != null) progress.display(10, "Filtering spots (0 done; "+spotsTotal+" total)..."); … … 139 139 if (progress != null) 140 140 { 141 int percent = 10 + 90 * spotsDone / spotsTotal;141 int percent = 10 + (int)(90L * spotsDone / spotsTotal); 142 142 progress.display(percent, 143 143 "Filtering spot intensities ("+spotsDone+" done; "+spotsTotal+" total)..."); … … 205 205 // Prepare progress reporting 206 206 int interval = 10; // Update progress after this many spots >= 10 207 intspotsDone = 0;207 long spotsDone = 0; 208 208 int spotsAfter = 0; 209 209 if (progress != null) … … 236 236 if (spotsDone % interval == 0) 237 237 { 238 int percent = 10 + 90 * spotsDone / spotsTotal;238 int percent = 10 + (int)(90L * spotsDone / spotsTotal); 239 239 progress.display(percent, 240 240 "Filtering spot intensities ("+spotsDone+" done; "+spotsTotal+" total)..."); -
branches/2.5-stable/src/core/net/sf/basedb/util/IntensityCalculatorUtil.java
r4020 r4050 305 305 int maxPosition = 0; 306 306 307 intspotsDone = 0; // Number of calculated spots307 long spotsDone = 0; // Number of calculated spots 308 308 int totalSpots = 0; // Total number of spots 309 309 int interval = 0; // Interval between reporter to the progress reporter … … 426 426 if (spotsDone % interval == 0) 427 427 { 428 int percent = 10 + 90 * spotsDone / totalSpots;428 int percent = 10 + (int)((90L * spotsDone) / totalSpots); 429 429 progress.display(percent, "Calculating spot intensities ("+spotsDone+" done)..."); 430 430 } -
branches/2.5-stable/src/plugins/core/net/sf/basedb/plugins/BioAssaySetExporter.java
r4044 r4050 685 685 int nof_reporters=bioassayset.getNumReporters(); 686 686 int progress_report_interval=nof_reporters/10; 687 intnof_processed_reporters=0;687 long nof_processed_reporters=0; 688 688 while (spotData.hasNext()) 689 689 { 690 690 if (progress != null && (nof_processed_reporters%progress_report_interval == 0)) 691 691 { 692 progress.display( 100 * nof_processed_reporters / nof_reporters,692 progress.display((int)(100L * nof_processed_reporters / nof_reporters), 693 693 "Exporting ... " + nof_processed_reporters + " of " + 694 694 nof_reporters + " done."); … … 781 781 int nof_spots=bioassayset.getNumSpots(); 782 782 int progress_spot_interval=nof_spots/10; 783 intnof_processed_spots=0;783 long nof_processed_spots=0; 784 784 while (spotData.hasNext()) 785 785 { … … 791 791 (nof_processed_spots%progress_spot_interval == 0)) 792 792 { 793 progress.display( 100 * nof_processed_spots / nof_spots,793 progress.display((int)(100L * nof_processed_spots / nof_spots), 794 794 "Exporting ..." + nof_processed_spots + " of " + 795 795 nof_spots + " done."); -
branches/2.5-stable/src/plugins/core/net/sf/basedb/plugins/LowessNormalization.java
r4034 r4050 351 351 query.restrict(intensityRestriction); 352 352 long numSpots = query.count(dc); 353 intnormalizedSpots = 0;353 long normalizedSpots = 0; 354 354 if (progress != null) progress.display((int)(normalizedSpots / numSpots * 100), normalizedSpots + " spots normalized"); 355 355 … … 431 431 } 432 432 normalizedSpots += smoothCurve.size(); 433 if (progress != null) progress.display((int)((normalizedSpots * 100 ) / numSpots), normalizedSpots + " spots normalized");433 if (progress != null) progress.display((int)((normalizedSpots * 100L) / numSpots), normalizedSpots + " spots normalized"); 434 434 } 435 435 fromBlock = toBlock + 1; -
branches/2.5-stable/src/plugins/core/net/sf/basedb/plugins/MedianRatioNormalization.java
r4040 r4050 349 349 query.restrict(intensityRestriction); 350 350 long numSpots = query.count(dc); 351 intnormalizedSpots = 0;351 long normalizedSpots = 0; 352 352 if (progress != null) progress.display((int)(normalizedSpots / numSpots * 100), normalizedSpots + " spots normalized"); 353 353 … … 441 441 } 442 442 normalizedSpots += toIndex - fromIndex; 443 if (progress != null) progress.display((int)((normalizedSpots * 100 ) / numSpots), normalizedSpots + " spots normalized");443 if (progress != null) progress.display((int)((normalizedSpots * 100L) / numSpots), normalizedSpots + " spots normalized"); 444 444 } 445 445 fromBlock = toBlock + 1;
Note: See TracChangeset
for help on using the changeset viewer.