summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/run.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/run.c b/src/run.c
index 3dc8ecc..7d166bb 100644
--- a/src/run.c
+++ b/src/run.c
@@ -227,11 +227,15 @@ void run(void)
.tv_sec = 1,
.tv_usec = 0
};
+ struct timeval *next = &next_alarm;
+
+ if (CONFIG(flags) & CTD_STATS_MODE)
+ next = NULL;
while(1) {
- if (__run(&next_alarm)) {
+ if (__run(next)) {
sigprocmask(SIG_BLOCK, &STATE(block), NULL);
- do_alarm_run(&next_alarm);
+ do_alarm_run(next);
sigprocmask(SIG_UNBLOCK, &STATE(block), NULL);
}
}