Correct progress reporting from checkout

This commit is contained in:
Ben Straub
2012-10-19 19:36:22 -07:00
parent 30a46ab1a9
commit 45b60d7b8d
2 changed files with 38 additions and 11 deletions
+3 -3
View File
@@ -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)