diff options
author | Wayne Davison <wayned@samba.org> | 2008-07-17 07:37:31 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-07-17 07:37:31 -0700 |
commit | 6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3 (patch) | |
tree | 42baf860a22de3fe37b6536842189262ea9bd051 /progress.c | |
parent | 97dde6b6200aa0a3333e4f821e24dd5f0f91ec75 (diff) | |
download | android_external_rsync-6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3.tar.gz android_external_rsync-6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3.tar.bz2 android_external_rsync-6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3.zip |
Changed human_num() to big_num() with an extra arg so that it can
be used in place of all %.0f output idioms.
Diffstat (limited to 'progress.c')
-rw-r--r-- | progress.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -25,6 +25,7 @@ extern int am_server; extern int need_unsorted_flist; extern int output_needs_newline; +extern int human_readable; extern struct stats stats; extern struct file_list *cur_flist; @@ -124,7 +125,7 @@ static void rprint_progress(OFF_T ofs, OFF_T size, struct timeval *now, output_needs_newline = 0; pct = ofs == size ? 100 : (int) (100.0 * ofs / size); rprintf(FCLIENT, "\r%12s %3d%% %7.2f%s %s%s", - human_num(ofs), pct, rate, units, rembuf, eol); + big_num(ofs, human_readable), pct, rate, units, rembuf, eol); if (!is_last) { output_needs_newline = 1; rflush(FCLIENT); |