Simplify print_stat()

This commit is contained in:
sin 2014-06-04 13:48:22 +01:00
parent 9c7d08773f
commit e2c6ab9a76
1 changed files with 2 additions and 3 deletions

5
dd.c
View File

@ -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