summaryrefslogtreecommitdiffstats
path: root/hbeat.c
diff options
context:
space:
mode:
Diffstat (limited to 'hbeat.c')
-rw-r--r--hbeat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hbeat.c b/hbeat.c
index c2456ca..b747516 100644
--- a/hbeat.c
+++ b/hbeat.c
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <time.h>
+#include <stdio.h>
#include "btime.h"
#include "hbeat.h"
@@ -110,6 +111,8 @@ hbeat(hbeat_t hbh)
hbeatp->last_rhost_btime = hbeat;
retval = 1;
} else if (abs(hbeat - hbeatp->last_rhost_btime) > 5) {
+ fprintf(stderr, "Host rebooted (%d, %d)\n",
+ hbeat, hbeatp->last_rhost_btime);
hbeatp->rhost_state = HOST_REBOOT;
retval = 0;
} else {