summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-10-18 15:17:12 -0700
committerBen Straub <bs@github.com>2012-10-19 19:36:22 -0700
commit45b60d7b8db79da18cecfd667dc7051f31dc8fe6 (patch)
tree3c1b1bb5f5d0c61e23376bd4b95adc4a3c858e7f /examples
parent30a46ab1a9464fe92860b29306efb99e50c0d226 (diff)
downloadlibgit2-45b60d7b8db79da18cecfd667dc7051f31dc8fe6.tar.gz
Correct progress reporting from checkout
Diffstat (limited to 'examples')
-rw-r--r--examples/network/clone.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/network/clone.c b/examples/network/clone.c
index 39b3241d9..fd30bca5b 100644
--- a/examples/network/clone.c
+++ b/examples/network/clone.c
@@ -15,17 +15,17 @@ typedef struct progress_data {
static void print_progress(const progress_data *pd)
{
- /*
int network_percent = (100*pd->fetch_progress.received) / pd->fetch_progress.total;
int index_percent = (100*pd->fetch_progress.processed) / pd->fetch_progress.total;
int checkout_percent = (int)(100.f * pd->checkout_progress);
- printf("net %3d%% / idx %3d%% / chk %3d%% %20s\r",
+ printf("net %3d%% / idx %3d%% / chk %3d%% %50s\r",
network_percent, index_percent, checkout_percent, pd->path);
- */
+ /*
printf("net %5d /%5d – idx %5d /%5d – chk %.04f %20s\r",
pd->fetch_progress.received, pd->fetch_progress.total,
pd->fetch_progress.processed, pd->fetch_progress.total,
pd->checkout_progress, pd->path);
+ */
}
static void fetch_progress(const git_indexer_stats *stats, void *payload)