This commit is contained in:
yasirarism 2023-06-06 15:34:22 +00:00 committed by GitHub
parent 170e94b196
commit 5b1c78c529
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View file

@ -27,8 +27,8 @@ async def progress_for_pyrogram(current, total, ud_type, message, start, dc_id):
estimated_total_time = time_formatter(estimated_total_time)
progress = "[{0}{1}] \nP: {2}%\n".format(
"".join(["" for _ in range(math.floor(percentage / 5))]),
"".join(["" for _ in range(20 - math.floor(percentage / 5))]),
"".join(["" for _ in range(math.floor(percentage / 5))]),
"".join(["" for _ in range(20 - math.floor(percentage / 5))]),
round(percentage, 2),
)

View file

@ -103,10 +103,9 @@ async def download(client, message):
diff = now - c_time
percentage = downloader.get_progress() * 100
speed = downloader.get_speed(human=True)
round(diff) * 1000
progress_str = "[{0}{1}]\nProgress: {2}%".format(
"".join(["" for _ in range(math.floor(percentage / 5))]),
"".join(["" for _ in range(20 - math.floor(percentage / 5))]),
"".join(["" for _ in range(math.floor(percentage / 5))]),
"".join(["" for _ in range(20 - math.floor(percentage / 5))]),
round(percentage, 2),
)

View file

@ -59,8 +59,8 @@ async def genss(self: Client, ctx: Message, strings):
percentage = downloader.get_progress() * 100
speed = downloader.get_speed(human=True)
progress_str = "[{0}{1}]\nProgress: {2}%".format(
"".join(["" for _ in range(math.floor(percentage / 5))]),
"".join(["" for _ in range(20 - math.floor(percentage / 5))]),
"".join(["" for _ in range(math.floor(percentage / 5))]),
"".join(["" for _ in range(20 - math.floor(percentage / 5))]),
round(percentage, 2),
)