diff --git a/ifstatd.c b/ifstatd.c index 24d6bd0..e0012e3 100644 --- a/ifstatd.c +++ b/ifstatd.c @@ -195,6 +195,8 @@ wait_for(int seconds) struct timespec tp; + bzero(&tp, sizeof(tp)); + clock_gettime(CLOCK_REALTIME, &tp); time_t current_epoch = tp.tv_sec;