pbs: query-backup: set reused field also for dirty-bitmap

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
master
Thomas Lamprecht 2020-07-03 19:25:31 +02:00
parent d7f4e01a34
commit 15b9c76e1f
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ index b311bf8de8..20fd6b1719 100644
diff --git a/pve-backup.c b/pve-backup.c
index bb917ee972..3a71270213 100644
index bb917ee972..7b5558e28e 100644
--- a/pve-backup.c
+++ b/pve-backup.c
@@ -28,6 +28,8 @@
@ -349,7 +349,7 @@ index bb917ee972..3a71270213 100644
+ backup_state.stat.dirty = dirty;
backup_state.stat.transferred = 0;
backup_state.stat.zero_bytes = 0;
+ backup_state.stat.reused = 0;
+ backup_state.stat.reused = dirty >= total ? 0 : total - dirty;
qemu_mutex_unlock(&backup_state.stat.lock);