From: Vincent Guittot vincent.guittot@linaro.org
json file is filled in usec, the log displays usec but we used the value as a msec duration. fix that and use it as usec unit
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org --- src/rt-app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rt-app.c b/src/rt-app.c index 958be5f..0570627 100644 --- a/src/rt-app.c +++ b/src/rt-app.c @@ -268,7 +268,7 @@ void *thread_body(void *arg) log_notice("[%d] Waiting %ld usecs... ", data->ind, data->wait_before_start); clock_gettime(CLOCK_MONOTONIC, &t_now); - t_next = msec_to_timespec(data->wait_before_start); + t_next = usec_to_timespec(data->wait_before_start); t_next = timespec_add(&t_now, &t_next); clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME,