- markus@cvs.openbsd.org 2003/11/20 11:39:28
[progressmeter.c]
fix rounding errors; from andreas@
+20031121
+ - (djm) OpenBSD CVS Sync
+ - markus@cvs.openbsd.org 2003/11/20 11:39:28
+ [progressmeter.c]
+ fix rounding errors; from andreas@
+
20031118
- (djm) Fix early exit for root auth success when UsePAM=yes and
PermitRootLogin=no
*/
#include "includes.h"
-RCSID("$OpenBSD: progressmeter.c,v 1.16 2003/09/23 20:18:52 markus Exp $");
+RCSID("$OpenBSD: progressmeter.c,v 1.17 2003/11/20 11:39:28 markus Exp $");
#include "progressmeter.h"
#include "atomicio.h"
bytes = (bytes + 512) / 1024;
}
snprintf(buf, size, "%3lld.%1lld%c%s",
- (int64_t) bytes / 100,
+ (int64_t) (bytes + 5) / 100,
(int64_t) (bytes + 5) / 10 % 10,
unit[i],
i ? "B" : " ");