[cli] Remove redundant conditional

This commit is contained in:
derrod 2022-09-16 13:10:34 +02:00
parent c0d67882bb
commit 66ef0f3d5e

View file

@ -1206,7 +1206,7 @@ class LegendaryCLI:
percentage = (processed / total_size) * 100.0 percentage = (processed / total_size) * 100.0
num += 1 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 last_update = current_time
speed = (processed - last_processed) / 1024 / 1024 / delta speed = (processed - last_processed) / 1024 / 1024 / delta
last_processed = processed last_processed = processed