mirror of
https://github.com/qemu/qemu.git
synced 2024-12-12 05:03:42 +08:00
ipmi: Fix the get watchdog command
It wasn't returning the set timeout like it should have been. Signed-off-by: Corey Minyard <cminyard@mvista.com> Reviewed-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
6af94767da
commit
fb45770bf5
@ -1228,6 +1228,8 @@ static void get_watchdog_timer(IPMIBmcSim *ibs,
|
||||
rsp_buffer_push(rsp, ibs->watchdog_action);
|
||||
rsp_buffer_push(rsp, ibs->watchdog_pretimeout);
|
||||
rsp_buffer_push(rsp, ibs->watchdog_expired);
|
||||
rsp_buffer_push(rsp, ibs->watchdog_timeout & 0xff);
|
||||
rsp_buffer_push(rsp, (ibs->watchdog_timeout >> 8) & 0xff);
|
||||
if (ibs->watchdog_running) {
|
||||
long timeout;
|
||||
timeout = ((ibs->watchdog_expiry - ipmi_getmonotime() + 50000000)
|
||||
|
Loading…
Reference in New Issue
Block a user