From 93d0776a96919a94fca51fe2cfd9530d8c9dcbb9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 4 Oct 2008 16:40:17 +0000 Subject: watchdog: WDIOC_SETTIMEOUT accepts seconds, not milliseconds klogd: handle many lines at once, by Steve Bennett (steveb AT workware.net.au) --- miscutils/watchdog.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'miscutils/watchdog.c') diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index 9bcd4b874..75a399f24 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c @@ -55,6 +55,8 @@ int watchdog_main(int argc, char **argv) /* Use known fd # - avoid needing global 'int fd' */ xmove_fd(xopen(argv[argc - 1], O_WRONLY), 3); + /* WDIOC_SETTIMEOUT takes seconds, not milliseconds */ + htimer_duration = htimer_duration / 1000; ioctl_or_warn(3, WDIOC_SETTIMEOUT, &htimer_duration); #if 0 ioctl_or_warn(3, WDIOC_GETTIMEOUT, &htimer_duration); -- cgit v1.2.3