Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/red-worker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/red-worker.c b/server/red-worker.c index 121a2e5..c53bc15 100644 --- a/server/red-worker.c +++ b/server/red-worker.c @@ -159,7 +159,7 @@ static int red_process_cursor(RedWorker *worker, int *ring_is_empty) if (worker->record) red_record_qxl_command(worker->record, &worker->mem_slots, ext_cmd, - stat_now(CLOCK_MONOTONIC)); + spice_get_monotonic_time_ns()); worker->cursor_poll_tries = 0; switch (ext_cmd.cmd.type) { @@ -222,7 +222,7 @@ static int red_process_display(RedWorker *worker, int *ring_is_empty) if (worker->record) red_record_qxl_command(worker->record, &worker->mem_slots, ext_cmd, - stat_now(CLOCK_MONOTONIC)); + spice_get_monotonic_time_ns()); stat_inc_counter(reds, worker->command_counter, 1); worker->display_poll_tries = 0; @@ -1186,7 +1186,7 @@ static void worker_dispatcher_record(void *opaque, uint32_t message_type, void * { RedWorker *worker = opaque; - red_record_event(worker->record, 1, message_type, stat_now(CLOCK_MONOTONIC)); + red_record_event(worker->record, 1, message_type, spice_get_monotonic_time_ns()); } static void register_callbacks(Dispatcher *dispatcher) -- 2.7.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel