Skip to content

Commit cdabe46

Browse files
committed
Add rounding to fix logging threshold condition
1 parent 4e2a039 commit cdabe46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dlstbx/services/cloudwatcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def watch_jobs(self, rw, header, message):
219219
else:
220220
message_delay = 1
221221
# Log job status update when runtime values in seconds are near powers of 2.
222-
logging_threshold = log2(max(runtime, 2)) - log2(
223-
max(runtime - 3 * message_delay, 1)
222+
logging_threshold = int(log2(max(runtime, 2))) - int(
223+
log2(max(runtime - 3 * message_delay, 1))
224224
)
225225
if logging_threshold:
226226
self.log.debug(

0 commit comments

Comments
 (0)