Module Name: src
Committed By: jmcneill
Date: Fri Aug 24 20:55:20 UTC 2018
Modified Files:
src/sys/stand/efiboot: prompt.c
Log Message:
Start counting down at 5 instead of 4
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/stand/efiboot/prompt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/stand/efiboot/prompt.c
diff -u src/sys/stand/efiboot/prompt.c:1.1 src/sys/stand/efiboot/prompt.c:1.2
--- src/sys/stand/efiboot/prompt.c:1.1 Fri Aug 24 02:01:06 2018
+++ src/sys/stand/efiboot/prompt.c Fri Aug 24 20:55:20 2018
@@ -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 @@ awaitkey(int timeout, int tell)
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);