From aed25d84077481d9779264d17e88d81b2abababa Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Wed, 8 Jun 2016 09:56:57 +0100 Subject: [PATCH] record: Use spice_get_monotonic_time_ns instead of stat_now(CLOCK_MONOTONIC) Signed-off-by: Frediano Ziglio Acked-by: Jonathon Jongsma --- 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 121a2e5c..c53bc15c 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)