Commit 55f98ccb9920b8e02a64b7dc937db99a85c7eb61

Stefan Sperling 2020-03-18T16:13:43

tweak indexing progress output again: display raw object counters

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/got/got.c b/got/got.c
index d5403d9..c692eaa 100644
--- a/got/got.c
+++ b/got/got.c
@@ -985,11 +985,12 @@ fetch_progress(void *arg, const char *message, off_t packfile_size,
 			printf(" %*s fetched", FMT_SCALED_STRSIZE, scaled);
 		if (nobj_indexed > 0) {
 			p = (nobj_indexed * 100) / nobj_total;
-			printf("; indexing %d%%", p);
+			printf("; indexing %d%% (%d)", p, nobj_indexed);
 		}
 		if (nobj_resolved > 0) {
 			p = (nobj_resolved * 100) / (nobj_total - nobj_loose);
-			printf("; resolving deltas %d%%", p);
+			printf("; resolving deltas %d%% (%d)",
+			    p, nobj_resolved);
 		}
 		*did_something = 1;
 	}