Skip to content

Commit 999fba6

Browse files
authored
Fix type error in StressTest (#1324)
1 parent b22e14c commit 999fba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmstestsuite/StressTest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def wait_next(self):
179179
SLEEP_PERIOD = 0.1
180180
time_to_wait = self.metrics['time_coeff'] * \
181181
random.expovariate(self.metrics['time_lambda'])
182-
sleep_num = time_to_wait // SLEEP_PERIOD
182+
sleep_num = int(time_to_wait // SLEEP_PERIOD)
183183
remaining_sleep = time_to_wait - (sleep_num * SLEEP_PERIOD)
184184
for _ in range(sleep_num):
185185
time.sleep(SLEEP_PERIOD)

0 commit comments

Comments
 (0)