summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/watchdog.cpp2
-rw-r--r--app/watchdog_service.cpp5
-rw-r--r--app/watchdog_service.hpp7
3 files changed, 1 insertions, 13 deletions
diff --git a/app/watchdog.cpp b/app/watchdog.cpp
index f97c45b..cb71115 100644
--- a/app/watchdog.cpp
+++ b/app/watchdog.cpp
@@ -247,7 +247,7 @@ ipmi::RspType<>
// Set the new interval and the time remaining deci -> mill seconds
const uint64_t interval = initialCountdown * 100;
wd_service.setInterval(interval);
- wd_service.setTimeRemaining(interval);
+ wd_service.resetTimeRemaining(false);
// Mark as initialized so that future resets behave correctly
wd_service.setInitialized(true);
diff --git a/app/watchdog_service.cpp b/app/watchdog_service.cpp
index a929cb6..3534e89 100644
--- a/app/watchdog_service.cpp
+++ b/app/watchdog_service.cpp
@@ -198,8 +198,3 @@ void WatchdogService::setInterval(uint64_t interval)
{
setProperty("Interval", interval);
}
-
-void WatchdogService::setTimeRemaining(uint64_t timeRemaining)
-{
- setProperty("TimeRemaining", timeRemaining);
-}
diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp
index ed64a3c..141bdb7 100644
--- a/app/watchdog_service.hpp
+++ b/app/watchdog_service.hpp
@@ -92,13 +92,6 @@ class WatchdogService
*/
void setInterval(uint64_t interval);
- /** @brief Sets the value of the timeRemaining property on the host
- * watchdog
- *
- * @param[in] timeRemaining - The new timeRemaining value
- */
- void setTimeRemaining(uint64_t timeRemaining);
-
private:
/** @brief sdbusplus handle */
sdbusplus::bus::bus bus;
OpenPOWER on IntegriCloud