Revision 7bd427d8 ui/vnc.c
b/ui/vnc.c | ||
---|---|---|
1875 | 1875 |
|
1876 | 1876 |
if (data[0] > 3) { |
1877 | 1877 |
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE; |
1878 |
if (!qemu_timer_expired(vd->timer, qemu_get_clock(rt_clock) + vd->timer_interval)) |
|
1879 |
qemu_mod_timer(vd->timer, qemu_get_clock(rt_clock) + vd->timer_interval); |
|
1878 |
if (!qemu_timer_expired(vd->timer, qemu_get_clock_ms(rt_clock) + vd->timer_interval))
|
|
1879 |
qemu_mod_timer(vd->timer, qemu_get_clock_ms(rt_clock) + vd->timer_interval);
|
|
1880 | 1880 |
} |
1881 | 1881 |
|
1882 | 1882 |
switch (data[0]) { |
... | ... | |
2441 | 2441 |
|
2442 | 2442 |
if (vnc_trylock_display(vd)) { |
2443 | 2443 |
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE; |
2444 |
qemu_mod_timer(vd->timer, qemu_get_clock(rt_clock) + |
|
2444 |
qemu_mod_timer(vd->timer, qemu_get_clock_ms(rt_clock) +
|
|
2445 | 2445 |
vd->timer_interval); |
2446 | 2446 |
return; |
2447 | 2447 |
} |
... | ... | |
2468 | 2468 |
if (vd->timer_interval > VNC_REFRESH_INTERVAL_MAX) |
2469 | 2469 |
vd->timer_interval = VNC_REFRESH_INTERVAL_MAX; |
2470 | 2470 |
} |
2471 |
qemu_mod_timer(vd->timer, qemu_get_clock(rt_clock) + vd->timer_interval); |
|
2471 |
qemu_mod_timer(vd->timer, qemu_get_clock_ms(rt_clock) + vd->timer_interval);
|
|
2472 | 2472 |
} |
2473 | 2473 |
|
2474 | 2474 |
static void vnc_init_timer(VncDisplay *vd) |
2475 | 2475 |
{ |
2476 | 2476 |
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE; |
2477 | 2477 |
if (vd->timer == NULL && !QTAILQ_EMPTY(&vd->clients)) { |
2478 |
vd->timer = qemu_new_timer(rt_clock, vnc_refresh, vd); |
|
2478 |
vd->timer = qemu_new_timer_ms(rt_clock, vnc_refresh, vd);
|
|
2479 | 2479 |
vnc_dpy_resize(vd->ds); |
2480 | 2480 |
vnc_refresh(vd); |
2481 | 2481 |
} |
Also available in: Unified diff