We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22e14c commit 999fba6Copy full SHA for 999fba6
cmstestsuite/StressTest.py
@@ -179,7 +179,7 @@ def wait_next(self):
179
SLEEP_PERIOD = 0.1
180
time_to_wait = self.metrics['time_coeff'] * \
181
random.expovariate(self.metrics['time_lambda'])
182
- sleep_num = time_to_wait // SLEEP_PERIOD
+ sleep_num = int(time_to_wait // SLEEP_PERIOD)
183
remaining_sleep = time_to_wait - (sleep_num * SLEEP_PERIOD)
184
for _ in range(sleep_num):
185
time.sleep(SLEEP_PERIOD)
0 commit comments