Fossil SCM

Move the increment of the round-trip counter for sync.

drh 2025-05-12 12:05 trunk
Commit dca483a80c126e2a5ff55e2bda1753571b5fdf313efd0f7b76f108bd68495e01
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -2382,16 +2382,16 @@
23822382
if( nCycle==0 && db_is_writeable("repository") ){
23832383
xfer_syncwith(g.url.canonical, 0);
23842384
}
23852385
23862386
/* Output current stats */
2387
+ nRoundtrip++;
23872388
if( syncFlags & SYNC_VERBOSE ){
23882389
fossil_print(zValueFormat /*works-like:"%s%d%d%d%d"*/, "Sent:",
23892390
blob_size(&send), nCardSent+xfer.nGimmeSent+xfer.nIGotSent,
23902391
xfer.nFileSent, xfer.nDeltaSent);
23912392
}else{
2392
- nRoundtrip++;
23932393
nArtifactSent += xfer.nFileSent + xfer.nDeltaSent;
23942394
if( bOutIsTty!=0 ){
23952395
fossil_print(zBriefFormat /*works-like:"%d%d%d"*/,
23962396
nRoundtrip, nArtifactSent, nArtifactRcvd);
23972397
}
23982398
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button