diff options
| author | Ben Straub <bs@github.com> | 2012-10-24 13:43:23 -0700 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-10-24 13:43:23 -0700 |
| commit | 9762ad993dc1afff90a3d14751f1b1f666ad0c95 (patch) | |
| tree | 220071761a88aff67175f78a09a0fb2435b74a4a /examples/network/fetch.c | |
| parent | 7d222e13121aebc269b2923a66c7ba5b734e1a90 (diff) | |
| download | libgit2-9762ad993dc1afff90a3d14751f1b1f666ad0c95.tar.gz | |
Renaming: fix example
Diffstat (limited to 'examples/network/fetch.c')
| -rw-r--r-- | examples/network/fetch.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 39cb0deb8..8bfe10c5c 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -105,16 +105,18 @@ int fetch(git_repository *repo, int argc, char **argv) do { usleep(10000); - if (stats->total > 0) + if (stats->total_objects > 0) printf("Received %d/%d objects (%d) in %d bytes\r", - stats->received, stats->total, stats->processed, bytes); + stats->received_objects, stats->total_objects, + stats->indexed_objects, bytes); } while (!data.finished); if (data.ret < 0) goto on_error; pthread_join(worker, NULL); - printf("\rReceived %d/%d objects in %zu bytes\n", stats->processed, stats->total, bytes); + printf("\rReceived %d/%d objects in %zu bytes\n", + stats->indexed_objects, stats->total_objects, bytes); // Disconnect the underlying connection to prevent from idling. git_remote_disconnect(remote); |
