Skip to content

Commit dc9ee63

Browse files
authored
Update telefunc.py
1 parent 91b5f49 commit dc9ee63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethon/telefunc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ def hbs(size):
4545
async def progress(current, total, event, start, type_of_ps, file=None):
4646
now = time.time()
4747
diff = now - start
48-
if round(diff % 25.00) == 0 or current == total:
48+
if round(diff % 10.00) == 0 or current == total:
4949
percentage = current * 100 / total
5050
speed = current / diff
5151
time_to_completion = round((total - current) / speed) * 1000
5252
progress_str = "**[{0}{1}]** `| {2}%`\n\n".format(
5353
"".join(["🟩" for i in range(math.floor(percentage / 10))]),
54-
"".join(["⬜️" for i in range(20 - math.floor(percentage / 10))]),
54+
"".join(["⬜️" for i in range(10 - math.floor(percentage / 10))]),
5555
round(percentage, 2),
5656
)
5757
tmp = (

0 commit comments

Comments
 (0)