mirror of git://anongit.mindrot.org/openssh.git
- (djm) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2003/11/20 11:39:28 [progressmeter.c] fix rounding errors; from andreas@
This commit is contained in:
parent
f96d18362d
commit
8c5e91c03f
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
@ -1488,4 +1494,4 @@
|
|||
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
||||
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
||||
|
||||
$Id: ChangeLog,v 1.3117 2003/11/18 11:01:48 djm Exp $
|
||||
$Id: ChangeLog,v 1.3118 2003/11/21 12:09:10 djm Exp $
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
*/
|
||||
|
||||
#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"
|
||||
|
@ -80,7 +80,7 @@ format_rate(char *buf, int size, off_t bytes)
|
|||
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" : " ");
|
||||
|
|
Loading…
Reference in New Issue