[Spice-devel] [PATCH 2/3] record: Use spice_get_monotonic_time_ns instead of stat_now(CLOCK_MONOTONIC)
Christophe Fergeau
cfergeau at redhat.com
Wed Jun 8 14:49:45 UTC 2016
Can you mention in the commit log that stat_now(CLOCK_MONOTONIC) and
spice_get_monotonic_time_ns() are doing the same thing?
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
Christophe
On Wed, Jun 08, 2016 at 10:20:41AM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160608/df55f875/attachment.sig>
More information about the Spice-devel
mailing list