From: Avery Pennarun Date: Tue, 29 Dec 2009 18:02:03 +0000 (-0500) Subject: Report the block size when splitting each block. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=07c933109bdea0b61ed729531ac75e352b7d63c8;p=packages%2Fb%2Fbup.git Report the block size when splitting each block. --- diff --git a/hashsplit.c b/hashsplit.c index 12efafd..3b764f2 100644 --- a/hashsplit.c +++ b/hashsplit.c @@ -44,7 +44,7 @@ int main() uint8_t buf[WINDOWSIZE]; uint32_t sum = 0; - int i = 0, count = 0, c; + int i = 0, count = 0, last_count = 0, c; FILE *pipe = NULL; memset(buf, 0, sizeof(buf)); @@ -72,8 +72,9 @@ int main() if ((sum & (BLOBSIZE-1)) == 0) { - fprintf(stderr, "SPLIT @ %-8d (%d/%d)\n", - count, BLOBSIZE, WINDOWSIZE); + fprintf(stderr, "SPLIT @ %-8d size=%-8d (%d/%d)\n", + count, count - last_count, BLOBSIZE, WINDOWSIZE); + last_count = count; i = 0; memset(buf, 0, sizeof(buf)); sum = 0;