From: sgunderson Date: Thu, 27 Jul 2000 00:02:07 +0000 (+0000) Subject: Fixed percentages display. X-Git-Url: https://git.sesse.net/?p=betaftpd;a=commitdiff_plain;h=344812430a983222d6202db12b767e65581951d5 Fixed percentages display. --- diff --git a/disp.c b/disp.c index 406e2f9..c98483e 100644 --- a/disp.c +++ b/disp.c @@ -78,7 +78,7 @@ void update_display(const struct conn * const first_conn) (float)(difftime(now, f->tran_start)) / 1024); } else #endif - printf("%-16s%-22s%12lu %7.2fkb/s %.2f%%\n", c->username, + printf("%-16s%-22s%12lu %7.2fkb/s %5.2f%%\n", c->username, trunc_filename, f->size, (float)(f->pos - c->rest_pos) / (float)(difftime(now, f->tran_start)) / 1024, (float)(f->pos) / (float)(f->size) * 100.0f);