mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
monitor: Switch from timer_new() to timer_new_ns()
We don't actually care for the scale, so we can just as well use the simpler interface. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1444921716-9511-4-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
93f8f982fe
commit
1824c41a62
1 changed files with 3 additions and 4 deletions
|
@ -545,8 +545,7 @@ monitor_qapi_event_throttle(QAPIEvent event, int64_t rate)
|
||||||
assert(rate * SCALE_MS <= INT64_MAX);
|
assert(rate * SCALE_MS <= INT64_MAX);
|
||||||
evstate->rate = rate * SCALE_MS;
|
evstate->rate = rate * SCALE_MS;
|
||||||
evstate->qdict = NULL;
|
evstate->qdict = NULL;
|
||||||
evstate->timer = timer_new(QEMU_CLOCK_REALTIME,
|
evstate->timer = timer_new_ns(QEMU_CLOCK_REALTIME,
|
||||||
SCALE_MS,
|
|
||||||
monitor_qapi_event_handler,
|
monitor_qapi_event_handler,
|
||||||
evstate);
|
evstate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue