Module Name:    othersrc
Committed By:   agc
Date:           Tue Sep  1 15:16:31 UTC 2015

Modified Files:
        othersrc/external/bsd/progress/dist: progress.c

Log Message:
we go to the lengths of calculating the prefix length for the progress bar,
so we might as well use it when printing out the progress bar. Missed from
previous changes from [email protected].


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 othersrc/external/bsd/progress/dist/progress.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/external/bsd/progress/dist/progress.c
diff -u othersrc/external/bsd/progress/dist/progress.c:1.2 othersrc/external/bsd/progress/dist/progress.c:1.3
--- othersrc/external/bsd/progress/dist/progress.c:1.2	Tue Sep  1 03:47:28 2015
+++ othersrc/external/bsd/progress/dist/progress.c	Tue Sep  1 15:16:31 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: progress.c,v 1.2 2015/09/01 03:47:28 agc Exp $	*/
+/*	$NetBSD: progress.c,v 1.3 2015/09/01 15:16:31 agc Exp $	*/
 
 /*-
  * Copyright (c) 1997-2009 The NetBSD Foundation, Inc.
@@ -198,7 +198,8 @@ progress_draw(progress_t *prog, uint64_t
 	}
 	secs = secsleft % SECSPERHOUR;
 	len = snprintf(buf, sizeof(buf),
-		"\r%s %3lld%% |%.*s%*s| %5lld %-3s %3lld.%02d %.2sB/s %s%02d:%02d ETA",
+		"\r%.*s %3lld%% |%.*s%*s| %5lld %-3s %3lld.%02d %.2sB/s %s%02d:%02d ETA",
+		(int)prefixlength,
 		(prog->prefix) ? prog->prefix : "",
 		(long long)prog->percent,
 		(int)starc, stars, (int)(barlength - starc), "",

Reply via email to