ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit e2c6ab9a764031727c35cf7e9f829946f5a929e4
parent 9c7d08773fcd398b50b484c5965438116cdb85e7
Author: sin <sin@2f30.org>
Date:   Wed,  4 Jun 2014 13:48:22 +0100

Simplify print_stat()

Diffstat:
dd.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dd.c b/dd.c @@ -210,10 +210,9 @@ print_stat(const struct dd_config *ddc) fprintf(stderr, "%"PRIu64" records out\n", ddc->rec_out); fprintf(stderr, "%"PRIu64" bytes (%"PRIu64" MB) copied", ddc->b_out, ddc->b_out/(1<<20)); - fprintf(stderr, ", %lu s, %f MB/s [%f mB/s]\n", + fprintf(stderr, ", %lu s, %f MB/s\n", (unsigned long)ddc->t_end - ddc->t_start, - ((double)(ddc->b_out/(1<<20)))/(ddc->t_end - ddc->t_start), - ((double)(ddc->b_out/(1000*1000)))/(ddc->t_end - ddc->t_start)); + ((double)(ddc->b_out/(1<<20)))/(ddc->t_end - ddc->t_start)); } static void