summaryrefslogtreecommitdiff
path: root/src/rt-app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt-app.c')
-rw-r--r--src/rt-app.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt-app.c b/src/rt-app.c
index 2627d58..fb4b37d 100644
--- a/src/rt-app.c
+++ b/src/rt-app.c
@@ -339,7 +339,8 @@ static int run_event(event_data_t *event, int dry_run,
t_wu = timespec_sub(&t_now, &rdata->res.timer.t_next);
ldata->wu_latency += timespec_to_usec(&t_wu);
} else {
- clock_gettime(CLOCK_MONOTONIC, &rdata->res.timer.t_next);
+ if (rdata->res.timer.relative)
+ clock_gettime(CLOCK_MONOTONIC, &rdata->res.timer.t_next);
ldata->wu_latency = 0UL;
}
}