Mercurial > hg > toybox
comparison toys/pending/dd.c @ 1750:8f59893165fa draft
add missing space in dd output
Also, coreutils says "s" instead of "seconds". POSIX specifies the
format of the previous two lines, but doesn't even mention this line.
author | Elliott Hughes <enh@google.com> |
---|---|
date | Mon, 23 Mar 2015 12:39:05 -0500 |
parents | d48bdc1cb017 |
children |
comparison
equal
deleted
inserted
replaced
1749:12761285eaee | 1750:8f59893165fa |
---|---|
132 + st.start.tv_usec))/1000000.0; | 132 + st.start.tv_usec))/1000000.0; |
133 //out to STDERR | 133 //out to STDERR |
134 fprintf(stderr,"%llu+%llu records in\n%llu+%llu records out\n", st.in_full, st.in_part, | 134 fprintf(stderr,"%llu+%llu records in\n%llu+%llu records out\n", st.in_full, st.in_part, |
135 st.out_full, st.out_part); | 135 st.out_full, st.out_part); |
136 human_readable(toybuf, st.bytes); | 136 human_readable(toybuf, st.bytes); |
137 fprintf(stderr, "%llu bytes (%s) copied,",st.bytes, toybuf); | 137 fprintf(stderr, "%llu bytes (%s) copied, ",st.bytes, toybuf); |
138 human_readable(toybuf, st.bytes/seconds); | 138 human_readable(toybuf, st.bytes/seconds); |
139 fprintf(stderr, "%f seconds, %s/s\n", seconds, toybuf); | 139 fprintf(stderr, "%f s, %s/s\n", seconds, toybuf); |
140 } | 140 } |
141 | 141 |
142 static void sig_handler(int sig) | 142 static void sig_handler(int sig) |
143 { | 143 { |
144 TT.sig = sig; | 144 TT.sig = sig; |