diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-07-13 12:01:11 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-08-24 19:01:10 +0200 |
| commit | bffa852f89268390d6bc3e6f99f5f0cccdc88f63 (patch) | |
| tree | b83249451c776dc386856bd01e318acef801ba43 /examples/network | |
| parent | c920e162325d0f9acba46a19c4619e6bfa17707e (diff) | |
| download | libgit2-bffa852f89268390d6bc3e6f99f5f0cccdc88f63.tar.gz | |
indexer: recognize and mark when all of the packfile has been downloaded
We can't always rely on the network telling us when the download is
finished. Recognize it from the indexer itself.
Diffstat (limited to 'examples/network')
| -rw-r--r-- | examples/network/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 52e0412f4..372c85840 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -96,7 +96,7 @@ int fetch(git_repository *repo, int argc, char **argv) // the download rate. do { usleep(10000); - printf("\rReceived %d/%d objects in %zu bytes", stats.processed, stats.total, bytes); + printf("\rReceived %d/%d objects (%d) in %d bytes", stats.received, stats.total, stats.processed, bytes); } while (!data.finished); if (data.ret < 0) |
