Fixed ETA going below 0

This commit is contained in:
Jonas_Jones 2023-10-24 17:29:13 +02:00 committed by GitHub
parent be246aaf71
commit 561ec52868
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,7 +229,8 @@ class ProgressBarEtaManager:
return self.durations
def getAvgEta(self):
return sum(self.durations)/len(self.durations)
eta = sum(self.durations)/len(self.durations)
return eta if eta >= 0 else 0
if __name__ == "__main__":