]> git.sesse.net Git - betaftpd/commitdiff
Fixed percentages display.
authorsgunderson <sgunderson>
Thu, 27 Jul 2000 00:02:07 +0000 (00:02 +0000)
committersgunderson <sgunderson>
Thu, 27 Jul 2000 00:02:07 +0000 (00:02 +0000)
disp.c

diff --git a/disp.c b/disp.c
index 406e2f99eaeb16da78c486abfab21719e3343c72..c98483e6d19a17aeab8a373ab01d603d10352471 100644 (file)
--- 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);