]> git.sesse.net Git - betaftpd/blobdiff - disp.c
Fixed the order of a leftover seteuid()/setegid() pair.
[betaftpd] / disp.c
diff --git a/disp.c b/disp.c
index 406e2f99eaeb16da78c486abfab21719e3343c72..5a16ef7a1b3af2290df7a255d274c2f39db11057 100644 (file)
--- 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);