Skip to content

Commit

Permalink
Update telefunc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vasusen-code authored Apr 15, 2024
1 parent a095873 commit 91b5f49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ethon/telefunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ def hbs(size):
async def progress(current, total, event, start, type_of_ps, file=None):
now = time.time()
diff = now - start
if round(diff % 10.00) == 0 or current == total:
if round(diff % 25.00) == 0 or current == total:
percentage = current * 100 / total
speed = current / diff
time_to_completion = round((total - current) / speed) * 1000
progress_str = "**[{0}{1}]** `| {2}%`\n\n".format(
"".join(["🟩" for i in range(math.floor(percentage / 5))]),
"".join(["⬜️" for i in range(20 - math.floor(percentage / 5))]),
"".join(["🟩" for i in range(math.floor(percentage / 10))]),
"".join(["⬜️" for i in range(20 - math.floor(percentage / 10))]),
round(percentage, 2),
)
tmp = (
Expand Down

0 comments on commit 91b5f49

Please sign in to comment.