Module Name: src
Committed By: dsl
Date: Wed Nov 4 21:24:57 UTC 2009
Modified Files:
src/lib/libcurses: timeout.c
Log Message:
Round timeout values up.
More importantly convert 1..99 to 1, not 0.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libcurses/timeout.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcurses/timeout.c
diff -u src/lib/libcurses/timeout.c:1.7 src/lib/libcurses/timeout.c:1.8
--- src/lib/libcurses/timeout.c:1.7 Mon Apr 28 20:23:01 2008
+++ src/lib/libcurses/timeout.c Wed Nov 4 21:24:57 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: timeout.c,v 1.7 2008/04/28 20:23:01 martin Exp $ */
+/* $NetBSD: timeout.c,v 1.8 2009/11/04 21:24:57 dsl Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: timeout.c,v 1.7 2008/04/28 20:23:01 martin Exp $");
+__RCSID("$NetBSD: timeout.c,v 1.8 2009/11/04 21:24:57 dsl Exp $");
#endif /* not lint */
#include "curses.h"
@@ -71,6 +71,6 @@
if (delay > 25500)
win->delay = 255;
else
- win->delay = delay / 100;
+ win->delay = (delay - 1)/ 100 + 1;
}
}