X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=disp.c;h=5a16ef7a1b3af2290df7a255d274c2f39db11057;hb=2e06cf84e003a95b6640a98c6da2348f93e6b6c6;hp=406e2f99eaeb16da78c486abfab21719e3343c72;hpb=4b83f8e50792b459dfd8a6ffe470c2fccb524e7b;p=betaftpd diff --git a/disp.c b/disp.c index 406e2f9..5a16ef7 100644 --- a/disp.c +++ b/disp.c @@ -2,7 +2,7 @@ Copyright (C) 1999-2000 Steinar H. Gunderson This program is is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License, version 2 if the + it under the terms of the GNU General Public License, version 2 of the License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, @@ -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);