Author: challngr Date: Fri Aug 8 20:18:02 2014 New Revision: 1616869 URL: http://svn.apache.org/r1616869 Log: UIMA-3983 Fix RM prediction code - oops, fix divide by 0.
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-rm/src/main/java/org/apache/uima/ducc/rm/scheduler/RmJob.java Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-rm/src/main/java/org/apache/uima/ducc/rm/scheduler/RmJob.java URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-rm/src/main/java/org/apache/uima/ducc/rm/scheduler/RmJob.java?rev=1616869&r1=1616868&r2=1616869&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/uima-ducc-rm/src/main/java/org/apache/uima/ducc/rm/scheduler/RmJob.java (original) +++ uima/sandbox/uima-ducc/trunk/uima-ducc-rm/src/main/java/org/apache/uima/ducc/rm/scheduler/RmJob.java Fri Aug 8 20:18:02 2014 @@ -60,7 +60,6 @@ public class RmJob protected int nquestions; // number of work-items in total protected int nquestions_remaining; // number of uncompleted work items protected double time_per_item = Double.NaN; // from OR - mean time per work item - protected long initialization_time = 0; // from OR - protected int share_order = 0; // How many shares per process this job requires (calculated on submission) @@ -949,6 +948,7 @@ public class RmJob // Get average init time int count = 0; + long initialization_time = 0; // from OR - for ( Share s : assignedShares.values() ) { long t = s.getInitializationTime(); if ( s.isInitialized() && ( t > 0) ) {