fsck: Fix object count output

The object count comes from g_hash_table_size(), so it's not a 0 based
index. In order to maintain the mod calculations correctly, just print
out index + 1.

https://bugzilla.gnome.org/show_bug.cgi?id=746360
This commit is contained in:
Dan Nicholson 2015-03-17 12:20:53 -07:00 committed by Matthew Barnes
parent f47693440d
commit 553d7840d5
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ fsck_reachable_objects_from_commits (OstreeRepo *repo,
goto out; goto out;
if (mod == 0 || (i % mod == 0)) if (mod == 0 || (i % mod == 0))
g_print ("%u/%u objects\n", i, count); g_print ("%u/%u objects\n", i + 1, count);
i++; i++;
} }