Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105910043
D16960.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16960.diff
View Options
Index: head/bin/dd/misc.c
===================================================================
--- head/bin/dd/misc.c
+++ head/bin/dd/misc.c
@@ -111,7 +111,7 @@
{
static int outlen;
char si[4 + 1 + 2 + 1]; /* 123 <space> <suffix> NUL */
- char iec[4 + 1 + 2 + 1]; /* 123 <space> <suffix> NUL */
+ char iec[4 + 1 + 3 + 1]; /* 123 <space> <suffix> NUL */
char persec[4 + 1 + 2 + 1]; /* 123 <space> <suffix> NUL */
char *buf;
double secs;
@@ -121,11 +121,11 @@
HN_DECIMAL | HN_DIVISOR_1000);
humanize_number(iec, sizeof(iec), (int64_t)st.bytes, "B", HN_AUTOSCALE,
HN_DECIMAL | HN_IEC_PREFIXES);
- humanize_number(persec, sizeof(iec), (int64_t)(st.bytes / secs), "B",
+ humanize_number(persec, sizeof(persec), (int64_t)(st.bytes / secs), "B",
HN_AUTOSCALE, HN_DECIMAL | HN_DIVISOR_1000);
asprintf(&buf, " %'ju bytes (%s, %s) transferred %.3fs, %s/s",
(uintmax_t)st.bytes, si, iec, secs, persec);
- outlen = fprintf(stderr, "%-*s\r", outlen, buf);
+ outlen = fprintf(stderr, "%-*s\r", outlen, buf) - 1;
fflush(stderr);
free(buf);
need_progress = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 12:10 PM (10 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15571107
Default Alt Text
D16960.diff (1 KB)
Attached To
Mode
D16960: dd: Correct padding in status=progress
Attached
Detach File
Event Timeline
Log In to Comment