Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot Start counting down at 5 instead of 4



details:   https://anonhg.NetBSD.org/src/rev/c12e42ce2738
branches:  trunk
changeset: 365626:c12e42ce2738
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Aug 24 20:55:20 2018 +0000

description:
Start counting down at 5 instead of 4

diffstat:

 sys/stand/efiboot/prompt.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fe73335d7ec6 -r c12e42ce2738 sys/stand/efiboot/prompt.c
--- a/sys/stand/efiboot/prompt.c        Fri Aug 24 20:51:15 2018 +0000
+++ b/sys/stand/efiboot/prompt.c        Fri Aug 24 20:55:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prompt.c,v 1.1 2018/08/24 02:01:06 jmcneill Exp $      */
+/*     $NetBSD: prompt.c,v 1.2 2018/08/24 20:55:20 jmcneill Exp $      */
 
 /*
  * Copyright (c) 1996, 1997
@@ -80,7 +80,7 @@
                        char buf[32];
                        int len;
 
-                       len = snprintf(buf, sizeof(buf), "%d seconds. ", i / POLL_FREQ);
+                       len = snprintf(buf, sizeof(buf), "%d seconds. ", (i + POLL_FREQ - 1) / POLL_FREQ);
                        if (len > 0 && len < sizeof(buf)) {
                                char *p = buf;
                                printf("%s", buf);



Home | Main Index | Thread Index | Old Index