Skip to content

Commit

Permalink
Fix incorrect rounding function
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanuel Ferdman <[email protected]>
  • Loading branch information
emmanuel-ferdman committed Sep 21, 2024
1 parent 4ea74c4 commit 8bd1219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyterhub/handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ async def spawn_single_user(self, user, server_name='', options=None):
human_retry_time = "%i0 seconds" % math.ceil(retry_time / 10.0)
else:
# round number of minutes
human_retry_time = "%i minutes" % math.round(retry_time / 60.0)
human_retry_time = "%i minutes" % round(retry_time / 60.0)

self.log.warning(
'%s pending spawns, throttling. Suggested retry in %s seconds.',
Expand Down

0 comments on commit 8bd1219

Please sign in to comment.