File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/scan-server/src/main/java/org/csstudio/scan/server/command Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public LoopCommandImpl(final LoopCommand command) throws Exception
8484 @ Override
8585 public long getWorkUnits ()
8686 {
87- final long iterations = 1 + Math . round ( Math . abs (( command . getEnd () - command . getStart ()) / command . getStepSize ()) );
87+ final long iterations = getNumSteps ( );
8888 long body_units = 0 ;
8989 for (ScanCommandImpl <?> command : implementation )
9090 body_units += command .getWorkUnits ();
@@ -129,7 +129,7 @@ private double getLoopStep()
129129 }
130130
131131 public int getNumSteps () {
132- return (int )Math .ceil (Math .abs (((getLoopEnd () - getLoopStart ()) / getLoopStep ()))) + 1 ;
132+ return (int )Math .ceil (Math .abs (((command . getEnd () - command . getStart ()) / command . getStepSize ()))) + 1 ;
133133 }
134134
135135 /** {@inheritDoc} */
You can’t perform that action at this time.
0 commit comments