| Message ID | 20260923141804.2730554-1-ecordonnier@snap.com |
|---|---|
| State | New |
| Headers | show |
| Series | cache: Emit load progress only at integer percentage boundaries | expand |
diff --git a/lib/bb/cache.py b/lib/bb/cache.py index 2361c5684..24bde62a9 100644 --- a/lib/bb/cache.py +++ b/lib/bb/cache.py @@ -736,7 +736,7 @@ class MulticonfigCache(Mapping): # we might have calculated incorrect total size because a file # might've been written out just after we checked its size cachesize = current_progress - current_percent = 100 * current_progress / cachesize + current_percent = 100 * current_progress // cachesize if current_percent > previous_percent: previous_percent = current_percent bb.event.fire(bb.event.CacheLoadProgress(current_progress, cachesize),