mirror of
https://github.com/JonasunderscoreJones/turbo-octo-potato.git
synced 2025-10-25 11:09:18 +02:00
Fixed ETA going below 0
This commit is contained in:
parent
561ec52868
commit
03e7ca6b17
1 changed files with 1 additions and 0 deletions
|
|
@ -182,6 +182,7 @@ class Progressbar:
|
||||||
eta = "N/A"
|
eta = "N/A"
|
||||||
else:
|
else:
|
||||||
eta = self.etaCalc(current, self.total)
|
eta = self.etaCalc(current, self.total)
|
||||||
|
eta = eta if eta >= 0 else 0
|
||||||
if eta < 60:
|
if eta < 60:
|
||||||
eta = str(eta) + "s"
|
eta = str(eta) + "s"
|
||||||
elif eta < 3600:
|
elif eta < 3600:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue