Skip to content

Commit 0e2df3a

Browse files
committed
add extra step for including bounds
1 parent 6ac30cf commit 0e2df3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/scan-server/src/main/java/org/csstudio/scan/server/command/LoopCommandImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private double getLoopStep()
129129
}
130130

131131
public int getNumSteps() {
132-
return (int)Math.ceil(Math.abs(((getLoopEnd() - getLoopStart()) / getLoopStep())));
132+
return (int)Math.ceil(Math.abs(((getLoopEnd() - getLoopStart()) / getLoopStep()))) + 1;
133133
}
134134

135135
/** {@inheritDoc} */

0 commit comments

Comments
 (0)