mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 23:49:04 +00:00
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:
parent
cf4b289f29
commit
aed25d8407
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user