host_monitor_app: Change variable name for alignment
Align the variable name.
bm -> bootMnager
dh -> dbusHandler
Tested: Buildable
Google-Bug-Id: 296530445
Change-Id: Ic1ad93cb1b690af90da7a37730ecc5dd178b2847
Signed-off-by: Michael Shen <gpgpgp@google.com>
diff --git a/include/host_monitor_app.hpp b/include/host_monitor_app.hpp
index 7cd678c..4aadfc0 100644
--- a/include/host_monitor_app.hpp
+++ b/include/host_monitor_app.hpp
@@ -28,8 +28,8 @@
std::shared_ptr<Util> util;
std::shared_ptr<FileUtil> cpCSV;
std::shared_ptr<FileUtil> durCSV;
- std::shared_ptr<BootManager> bm;
- std::shared_ptr<DbusHandler> dh;
+ std::shared_ptr<BootManager> bootManager;
+ std::shared_ptr<DbusHandler> dbusHandler;
};
} // namespace boot_time_monitor
diff --git a/src/host_monitor_app.cpp b/src/host_monitor_app.cpp
index 8918f89..f76e92d 100644
--- a/src/host_monitor_app.cpp
+++ b/src/host_monitor_app.cpp
@@ -36,8 +36,9 @@
util = std::make_shared<Util>();
cpCSV = std::make_shared<FileUtil>(util->getCPPath(kNodeName, false));
durCSV = std::make_shared<FileUtil>(util->getDurPath(kNodeName, false));
- bm = std::make_shared<BootManager>(util, cpCSV, durCSV);
- dh = std::make_shared<DbusHandler>(bus, kObjPath.data(), bm, util);
+ bootManager = std::make_shared<BootManager>(util, cpCSV, durCSV);
+ dbusHandler = std::make_shared<DbusHandler>(bus, kObjPath.data(),
+ bootManager, util);
powerMatcher = std::make_unique<sdbusplus::bus::match::match>(
bus,
@@ -59,11 +60,11 @@
{
if (std::get<std::string>(findState->second) == kHostStateRunning)
{
- bm->setCheckpoint(kS0.data(), 0, 0);
+ bootManager->setCheckpoint(kS0.data(), 0, 0);
}
else if (std::get<std::string>(findState->second) == kHostStateOff)
{
- bm->setCheckpoint(kS5.data(), 0, 0);
+ bootManager->setCheckpoint(kS5.data(), 0, 0);
}
}
});