From 66ef0f3d5eeb816cc75dfb902d4423b96f0891c9 Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 16 Sep 2022 13:10:34 +0200 Subject: [PATCH] [cli] Remove redundant conditional --- legendary/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index 4ea25fe..d860924 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -1206,7 +1206,7 @@ class LegendaryCLI: percentage = (processed / total_size) * 100.0 num += 1 - if (delta := ((current_time := time.time()) - last_update)) > 1 or (not last_processed and delta > 1): + if (delta := ((current_time := time.time()) - last_update)) > 1: last_update = current_time speed = (processed - last_processed) / 1024 / 1024 / delta last_processed = processed