diff --git a/src/main/java/com/emc/mongoose/run/scenario/engine/ForJob.java b/src/main/java/com/emc/mongoose/run/scenario/engine/ForJob.java index 00c42a7580..0476c0b9df 100644 --- a/src/main/java/com/emc/mongoose/run/scenario/engine/ForJob.java +++ b/src/main/java/com/emc/mongoose/run/scenario/engine/ForJob.java @@ -102,11 +102,11 @@ public ForJob(final AppConfig appConfig, final Map subTree) { } if(start < end) { LOG.info( - Markers.MSG, "Parsed loop range: {} = {}, {} < {}, {} += {}", + Markers.MSG, "Parsed loop range: {} = {}, {} <= {}, {} += {}", replaceMarkerName, start, replaceMarkerName, end, replaceMarkerName, step ); - for(double i = start; i < end; i += step) { + for(double i = start; i <= end; i += step) { if(i == (long) i) { valueSeq.add((long) i); } else { @@ -115,11 +115,11 @@ public ForJob(final AppConfig appConfig, final Map subTree) { } } else { LOG.info( - Markers.MSG, "Parsed loop range: {} = {}, {} > {}, {} -= {}", + Markers.MSG, "Parsed loop range: {} = {}, {} => {}, {} -= {}", replaceMarkerName, start, replaceMarkerName, end, replaceMarkerName, step ); - for(double i = start; i > end; i -= step) { + for(double i = start; i >= end; i -= step) { if(i == (long) i) { valueSeq.add((long) i); } else {