summaryrefslogtreecommitdiff
path: root/util/qemu-progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/qemu-progress.c')
-rw-r--r--util/qemu-progress.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/qemu-progress.c b/util/qemu-progress.c
index 4ee5cd07f2..532333e757 100644
--- a/util/qemu-progress.c
+++ b/util/qemu-progress.c
@@ -152,7 +152,8 @@ void qemu_progress_print(float delta, int max)
state.current = current;
if (current > (state.last_print + state.min_skip) ||
- (current == 100) || (current == 0)) {
+ current < (state.last_print - state.min_skip) ||
+ current == 100 || current == 0) {
state.last_print = state.current;
state.print();
}