diff options
author | William A. Kennington III <wak@google.com> | 2019-12-05 17:04:29 -0800 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2020-01-06 23:37:15 +0000 |
commit | ebc53cb165ea26aa48f0bbf01d9bce0e4abb0b7d (patch) | |
tree | c46a9e07c7da4d5ce962986b9c12337a96c4d30c /app/watchdog_service.cpp | |
parent | 4a15685ee852d0b0ee0981d3d1a2a9dd55130835 (diff) | |
download | phosphor-host-ipmid-ebc53cb165ea26aa48f0bbf01d9bce0e4abb0b7d.tar.gz phosphor-host-ipmid-ebc53cb165ea26aa48f0bbf01d9bce0e4abb0b7d.zip |
app/watchdog: Always use resetTimeRemaining
The SetWatchdog function currently sets the intervals and then the time
remaining on the watchdog. It uses the user provided interval for both
values. Recently, the watchdog was extended to allow for the interval to
be capped above a certain value to prevent the user from setting
watchdogs that are known to be too short. In order to keep the
timeRemaining in sync with the value in the watchdog, just use the
resetTimeRemaining() function which reads the current interval to set
the timeRemaining.
Change-Id: I3f15030a85c625fcb1ed8040add03496618a5ece
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'app/watchdog_service.cpp')
-rw-r--r-- | app/watchdog_service.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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); -} |