diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2010-05-18 07:05:19 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2010-05-18 07:05:19 +0000 |
commit | 5e9cbc8c20e0937417ddbe60737c90e261fac85b (patch) | |
tree | 2c0a7004055a752d670831e8c11a96898c78926d | |
parent | 2a8c476cc299b5156f773ee5184486606637e917 (diff) |
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. */ |