aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desiredata/src/s_watchdog.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/desiredata/src/s_watchdog.c b/desiredata/src/s_watchdog.c
index 14089eeb..49bffbb6 100644
--- a/desiredata/src/s_watchdog.c
+++ b/desiredata/src/s_watchdog.c
@@ -17,13 +17,8 @@ int main(int argc, char **argv) {
while (1) {
struct timeval timout;
fd_set readset;
- if (happy) {
- timout.tv_sec = 5;
- timout.tv_usec = 0;
- } else {
- timout.tv_sec = 2;
- timout.tv_usec = 0;
- }
+ if (happy) {timout.tv_sec = 5; timout.tv_usec = 0;}
+ else {timout.tv_sec = 2; timout.tv_usec = 0;}
FD_ZERO(&readset);
FD_SET(0, &readset);
select(1, &readset, 0, 0, &timout);