diff options
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/watchdog.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
| 55 | /* Use known fd # - avoid needing global 'int fd' */ | 55 | /* Use known fd # - avoid needing global 'int fd' */ |
| 56 | xmove_fd(xopen(argv[argc - 1], O_WRONLY), 3); | 56 | xmove_fd(xopen(argv[argc - 1], O_WRONLY), 3); |
| 57 | 57 | ||
| 58 | /* WDIOC_SETTIMEOUT takes seconds, not milliseconds */ | ||
| 59 | htimer_duration = htimer_duration / 1000; | ||
| 58 | ioctl_or_warn(3, WDIOC_SETTIMEOUT, &htimer_duration); | 60 | ioctl_or_warn(3, WDIOC_SETTIMEOUT, &htimer_duration); |
| 59 | #if 0 | 61 | #if 0 |
| 60 | ioctl_or_warn(3, WDIOC_GETTIMEOUT, &htimer_duration); | 62 | ioctl_or_warn(3, WDIOC_GETTIMEOUT, &htimer_duration); |
