Fossil SCM

Another correction to the xfer status counters.

drh 2025-05-12 12:17 trunk
Commit 04b9b0136daec1bcb6b5e088e8f091203d7c84b17f26e76b696004630e973561
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -2383,16 +2383,16 @@
23832383
xfer_syncwith(g.url.canonical, 0);
23842384
}
23852385
23862386
/* Output current stats */
23872387
nRoundtrip++;
2388
+ nArtifactSent += xfer.nFileSent + xfer.nDeltaSent;
23882389
if( syncFlags & SYNC_VERBOSE ){
23892390
fossil_print(zValueFormat /*works-like:"%s%d%d%d%d"*/, "Sent:",
23902391
blob_size(&send), nCardSent+xfer.nGimmeSent+xfer.nIGotSent,
23912392
xfer.nFileSent, xfer.nDeltaSent);
23922393
}else{
2393
- nArtifactSent += xfer.nFileSent + xfer.nDeltaSent;
23942394
if( bOutIsTty!=0 ){
23952395
fossil_print(zBriefFormat /*works-like:"%d%d%d"*/,
23962396
nRoundtrip, nArtifactSent, nArtifactRcvd);
23972397
}
23982398
}
23992399
--- src/xfer.c
+++ src/xfer.c
@@ -2383,16 +2383,16 @@
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 }
2399
--- src/xfer.c
+++ src/xfer.c
@@ -2383,16 +2383,16 @@
2383 xfer_syncwith(g.url.canonical, 0);
2384 }
2385
2386 /* Output current stats */
2387 nRoundtrip++;
2388 nArtifactSent += xfer.nFileSent + xfer.nDeltaSent;
2389 if( syncFlags & SYNC_VERBOSE ){
2390 fossil_print(zValueFormat /*works-like:"%s%d%d%d%d"*/, "Sent:",
2391 blob_size(&send), nCardSent+xfer.nGimmeSent+xfer.nIGotSent,
2392 xfer.nFileSent, xfer.nDeltaSent);
2393 }else{
 
2394 if( bOutIsTty!=0 ){
2395 fossil_print(zBriefFormat /*works-like:"%d%d%d"*/,
2396 nRoundtrip, nArtifactSent, nArtifactRcvd);
2397 }
2398 }
2399

Keyboard Shortcuts

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