Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 authored Aug 22, 2020
1 parent 870a633 commit 2bbc8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userge/plugins/tools/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ async def _dyno_saver_worker() -> None:
prog = round(current_idle_time * 100 / MAX_IDLE_TIME, 2)
mins = int(MAX_IDLE_TIME / 60)
if prog >= 75 and not warned:
rem = int((100 - prog) * MAX_IDLE_TIME)
rem = int((100 - prog) * MAX_IDLE_TIME / 100)
await CHANNEL.log(
f"#WARNING\n\ndyno kill worker `{prog}%` completed !"
f"`{rem}`s remaining !")
f"\n`{rem}`s remaining !")
warned = True
LOG.info(f"< dyno kill worker ... ({prog}%)({mins}) >")
await asyncio.sleep(1)
Expand Down

0 comments on commit 2bbc8ac

Please sign in to comment.