@@ -780,10 +780,10 @@
/*
** Format strings for progress reporting.
*/
-static const char zLabel[] = "%-10s %10s %10s %10s %10s %10s\n";
-static const char zValue[] = "\r%-10s %10d %10d %10d %10d %10d\n";
+static const char zLabelFormat[] = "%-10s %10s %10s %10s %10s\n";
+static const char zValueFormat[] = "\r%-10s %10d %10d %10d %10d\n";
/*
** Sync to the host identified in g.urlName and g.urlPath. This
@@ -841,9 +841,9 @@
if( pushFlag ){
blob_appendf(&send, "push %s %s\n", zSCode, zPCode);
nCard++;
}
- printf(zLabel, "", "Bytes", "Cards", "Artifacts", "Deltas", "Dangling");
+ printf(zLabelFormat, "", "Bytes", "Cards", "Artifacts", "Deltas");
while( go ){
int newPhantom = 0;
@@ -867,11 +867,11 @@
}
/* Exchange messages with the server */
nFileSend = xfer.nFileSent + xfer.nDeltaSent;
- printf(zValue, "Send:",
+ printf(zValueFormat, "Send:",
blob_size(&send), nCard+xfer.nGimmeSent+xfer.nIGotSent,
- xfer.nFileSent, xfer.nDeltaSent, 0);
+ xfer.nFileSent, xfer.nDeltaSent);
#if 0
printf("Sent: %10d bytes, %5d cards, %5d files (%d+%d)\n",
blob_size(&send), nCard+xfer.nGimmeSent+xfer.nIGotSent,
nFileSend, xfer.nFileSent, xfer.nDeltaSent);
@@ -1028,17 +1028,11 @@
}
blobarray_reset(xfer.aToken, xfer.nToken);
blob_reset(&xfer.line);
}
- printf(zValue, "Received:",
+ printf(zValueFormat, "Received:",
blob_size(&recv), nCard,
- xfer.nFileRcvd, xfer.nDeltaRcvd, xfer.nDanglingFile);
-#if 0
- printf("\rReceived: %10d bytes, %5d cards, %5d files (%d+%d+%d)\n",
- blob_size(&recv), nCard,
- xfer.nFileRcvd + xfer.nDeltaRcvd + xfer.nDanglingFile,
- xfer.nFileRcvd, xfer.nDeltaRcvd, xfer.nDanglingFile);
-#endif
+ xfer.nFileRcvd, xfer.nDeltaRcvd + xfer.nDanglingFile);
blob_reset(&recv);
nCycle++;
go = 0;