We don't actually care for the scale, so we can just as well use the simpler interface.
Signed-off-by: Markus Armbruster <arm...@redhat.com> Message-Id: <1444921716-9511-4-git-send-email-arm...@redhat.com> Reviewed-by: Eric Blake <ebl...@redhat.com> --- monitor.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/monitor.c b/monitor.c index ec4096b..c2aedbe 100644 --- a/monitor.c +++ b/monitor.c @@ -545,10 +545,9 @@ monitor_qapi_event_throttle(QAPIEvent event, int64_t rate) assert(rate * SCALE_MS <= INT64_MAX); evstate->rate = rate * SCALE_MS; evstate->qdict = NULL; - evstate->timer = timer_new(QEMU_CLOCK_REALTIME, - SCALE_MS, - monitor_qapi_event_handler, - evstate); + evstate->timer = timer_new_ns(QEMU_CLOCK_REALTIME, + monitor_qapi_event_handler, + evstate); } static void monitor_qapi_event_init(void) -- 2.4.3