record: Use spice_get_monotonic_time_ns instead of stat_now(CLOCK_MONOTONIC)

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-06-08 09:56:57 +01:00
parent cf4b289f29
commit aed25d8407

View File

@ -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)