diff options
author | 2010-05-18 07:05:18 +0000 | |
---|---|---|
committer | 2010-05-18 07:05:18 +0000 | |
commit | 9b11c20e21f670fce9ec1d034e24b871b1d4e3b4 (patch) | |
tree | 0f179c41fd71f81e048891282dc01fe313506f34 | |
parent | dont let sys/ioctl.h imply that you get the ioctls in dkio.h. this (diff) | |
download | wireguard-openbsd-9b11c20e21f670fce9ec1d034e24b871b1d4e3b4.tar.xz wireguard-openbsd-9b11c20e21f670fce9ec1d034e24b871b1d4e3b4.zip |
tweak dumpsys's countdown to cope with upcoming speedup
tested by ckuethe@, ok oga@
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 8fc28481dcb..ad097fd5085 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.107 2010/05/13 19:27:24 oga Exp $ */ +/* $OpenBSD: machdep.c,v 1.108 2010/05/18 07:05:18 halex Exp $ */ /* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */ /*- @@ -915,7 +915,7 @@ dumpsys(void) for (i = 0; i < bytes; i += n, totalbytesleft -= n) { /* Print out how many MBs we have left to go. */ - if ((totalbytesleft % (1024*1024)) == 0) + if ((totalbytesleft % (1024*1024)) < BYTES_PER_DUMP) printf("%ld ", totalbytesleft / (1024 * 1024)); /* Limit size for next transfer. */ |