[hackers] [ubase] Simplify print_stat() || sin

From: <git_AT_suckless.org>
Date: Wed, 04 Jun 2014 14:53:13 +0200

commit e2c6ab9a764031727c35cf7e9f829946f5a929e4
Author: sin <sin_AT_2f30.org>
Date: Wed Jun 4 13:48:22 2014 +0100

    Simplify print_stat()

diff --git a/dd.c b/dd.c
index 79a3d08..85cb7f7 100644
--- a/dd.c
+++ b/dd.c
_AT_@ -210,10 +210,9 @@ print_stat(const struct dd_config *ddc)
         fprintf(stderr, "%"PRIu64" records out
", 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]
",
+ fprintf(stderr, ", %lu s, %f MB/s
",
                 (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
Received on Wed Jun 04 2014 - 14:53:13 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 04 2014 - 15:00:09 CEST