summaryrefslogtreecommitdiffstats
path: root/host-cmd-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host-cmd-manager.cpp')
-rw-r--r--host-cmd-manager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host-cmd-manager.cpp b/host-cmd-manager.cpp
index 4084910..2f96661 100644
--- a/host-cmd-manager.cpp
+++ b/host-cmd-manager.cpp
@@ -3,12 +3,12 @@
#include "host-cmd-manager.hpp"
#include "systemintfcmds.hpp"
-#include "timer.hpp"
-#include "utils.hpp"
#include <chrono>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>
+#include <sdbusplus/timer.hpp>
+#include <utils.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
#include <xyz/openbmc_project/State/Host/server.hpp>
@@ -47,7 +47,7 @@ Manager::Manager(sdbusplus::bus::bus& bus, sd_event* event) :
IpmiCmdData Manager::getNextCommand()
{
// Stop the timer. Don't have to Err failure doing so.
- auto r = timer.setTimer(SD_EVENT_OFF);
+ auto r = timer.stop();
if (r < 0)
{
log<level::ERR>("Failure to STOP the timer",
@@ -123,7 +123,7 @@ void Manager::checkQueueAndAlertHost()
auto time = std::chrono::duration_cast<std::chrono::microseconds>(
std::chrono::seconds(IPMI_SMS_ATN_ACK_TIMEOUT_SECS));
- auto r = timer.startTimer(time);
+ auto r = timer.start(time);
if (r < 0)
{
log<level::ERR>("Error starting timer for control host");
OpenPOWER on IntegriCloud