Skip to content

Commit 5fd3b6b

Browse files
committed
Type cast in remaining time too
1 parent 2e3b87b commit 5fd3b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/python/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self):
3333
self.memory_limit_in_mb = int(getTASK_MAXRAM() / 1024 / 1024)
3434

3535
def get_remaining_time_in_millis(self):
36-
remaining = plannedEnd - time.time()
36+
remaining = plannedEnd - int(time.time())
3737
if remaining < 0:
3838
remaining = 0
3939
return remaining * 1000

0 commit comments

Comments
 (0)