Fossil SCM
Move the increment of the round-trip counter for sync.
Commit
dca483a80c126e2a5ff55e2bda1753571b5fdf313efd0f7b76f108bd68495e01
Parent
d328168677deb01…
1 file changed
+1
-1
+1
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2382,16 +2382,16 @@ | ||
| 2382 | 2382 | if( nCycle==0 && db_is_writeable("repository") ){ |
| 2383 | 2383 | xfer_syncwith(g.url.canonical, 0); |
| 2384 | 2384 | } |
| 2385 | 2385 | |
| 2386 | 2386 | /* Output current stats */ |
| 2387 | + nRoundtrip++; | |
| 2387 | 2388 | if( syncFlags & SYNC_VERBOSE ){ |
| 2388 | 2389 | fossil_print(zValueFormat /*works-like:"%s%d%d%d%d"*/, "Sent:", |
| 2389 | 2390 | blob_size(&send), nCardSent+xfer.nGimmeSent+xfer.nIGotSent, |
| 2390 | 2391 | xfer.nFileSent, xfer.nDeltaSent); |
| 2391 | 2392 | }else{ |
| 2392 | - nRoundtrip++; | |
| 2393 | 2393 | nArtifactSent += xfer.nFileSent + xfer.nDeltaSent; |
| 2394 | 2394 | if( bOutIsTty!=0 ){ |
| 2395 | 2395 | fossil_print(zBriefFormat /*works-like:"%d%d%d"*/, |
| 2396 | 2396 | nRoundtrip, nArtifactSent, nArtifactRcvd); |
| 2397 | 2397 | } |
| 2398 | 2398 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2382,16 +2382,16 @@ | |
| 2382 | if( nCycle==0 && db_is_writeable("repository") ){ |
| 2383 | xfer_syncwith(g.url.canonical, 0); |
| 2384 | } |
| 2385 | |
| 2386 | /* Output current stats */ |
| 2387 | if( syncFlags & SYNC_VERBOSE ){ |
| 2388 | fossil_print(zValueFormat /*works-like:"%s%d%d%d%d"*/, "Sent:", |
| 2389 | blob_size(&send), nCardSent+xfer.nGimmeSent+xfer.nIGotSent, |
| 2390 | xfer.nFileSent, xfer.nDeltaSent); |
| 2391 | }else{ |
| 2392 | nRoundtrip++; |
| 2393 | nArtifactSent += xfer.nFileSent + xfer.nDeltaSent; |
| 2394 | if( bOutIsTty!=0 ){ |
| 2395 | fossil_print(zBriefFormat /*works-like:"%d%d%d"*/, |
| 2396 | nRoundtrip, nArtifactSent, nArtifactRcvd); |
| 2397 | } |
| 2398 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2382,16 +2382,16 @@ | |
| 2382 | if( nCycle==0 && db_is_writeable("repository") ){ |
| 2383 | xfer_syncwith(g.url.canonical, 0); |
| 2384 | } |
| 2385 | |
| 2386 | /* Output current stats */ |
| 2387 | nRoundtrip++; |
| 2388 | if( syncFlags & SYNC_VERBOSE ){ |
| 2389 | fossil_print(zValueFormat /*works-like:"%s%d%d%d%d"*/, "Sent:", |
| 2390 | blob_size(&send), nCardSent+xfer.nGimmeSent+xfer.nIGotSent, |
| 2391 | xfer.nFileSent, xfer.nDeltaSent); |
| 2392 | }else{ |
| 2393 | nArtifactSent += xfer.nFileSent + xfer.nDeltaSent; |
| 2394 | if( bOutIsTty!=0 ){ |
| 2395 | fossil_print(zBriefFormat /*works-like:"%d%d%d"*/, |
| 2396 | nRoundtrip, nArtifactSent, nArtifactRcvd); |
| 2397 | } |
| 2398 |