#include <fcntl.h>
#include <math.h>
#include <time.h>
+#include <signal.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include "wireless.22.h"
-/* Check interval */
-#define INTERVAL 30
+/* Watchdog poll interval */
+#define BASE_INTERVAL 5
+
+/* Action interval (N * BASE_INTERVAL) */
+#define ACTION_INTERVAL 6
/* Hysteresis */
#define HYSTERESIS 3
/* Watchdog device */
#define WATCH_DEVICE "/dev/watchdog"
#define WATCH_SHUTDOWN 'V'
+#define WATCH_KEEPALIVE '\0'
/* System load error action and treshold */
#define LOAD_TRESHOLD 5.00