diff options
Diffstat (limited to 'apphandler.cpp')
-rw-r--r-- | apphandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apphandler.cpp b/apphandler.cpp index d911356..210544c 100644 --- a/apphandler.cpp +++ b/apphandler.cpp @@ -436,22 +436,22 @@ ipmi_ret_t ipmi_app_set_watchdog(ipmi_netfn_t netfn, ipmi_cmd_t cmd, sd_bus_error_free(&error); reply = sd_bus_message_unref(reply); - // Now Enable Watchdog + // Set the Interval for the Watchdog r = sd_bus_call_method(bus, busname, objname, property_iface, "Set", &error, &reply, "ssv", - iface, "Enabled", "b", true); + iface, "Interval", "t", timer_ms); if(r < 0) { - fprintf(stderr, "Failed to Enable Watchdog: %s\n", + fprintf(stderr, "Failed to set new expiration time: %s\n", strerror(-r)); goto finish; } - // Set watchdog timer + // Now Enable Watchdog r = sd_bus_call_method(bus, busname, objname, property_iface, "Set", &error, &reply, "ssv", - iface, "TimeRemaining", "t", timer_ms); + iface, "Enabled", "b", true); if(r < 0) { - fprintf(stderr, "Failed to set new expiration time: %s\n", + fprintf(stderr, "Failed to Enable Watchdog: %s\n", strerror(-r)); goto finish; } |