- "Mean is %f %s",
- data.count, data.iters, data.relstderr, data.threshold, data.mean,
- (data.sum != 0.0 ? "Applying it count times because we finished benching count iterations": ""));
- double sleep = data.mean;
- if (data.sum != 0.0){ //we finished benching, sum is unecessary after the first injection, we can reset it.
- sleep = data.sum;
- data.sum = 0.0;
- }
+ "Mean is %f, will be injected %d times",
+ data.count, data.iters, data.relstderr, data.threshold, data.mean, iter_count);
+
+ //we ended benchmarking, let's inject all the time, now, and fast forward out of the loop.