Move timeMode property to manager
The current logic is to maintain the same attribute in manager and
epoch_base, the purpose of this commit is to merge this attribute
into manager for maintenance.
Also, Update the test/TestBmcEpoch.cpp file.
Tested: Built phosphor-time-manager successfully and UT passed.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I05fea271d672bf12ecb722005023dfa6a2a980d1
diff --git a/main.cpp b/main.cpp
index b2d1d8a..82111b6 100644
--- a/main.cpp
+++ b/main.cpp
@@ -24,8 +24,8 @@
// Add sdbusplus ObjectManager
sdbusplus::server::manager_t bmcEpochObjManager(bus, OBJPATH_BMC);
- phosphor::time::BmcEpoch bmc(bus, OBJPATH_BMC);
phosphor::time::Manager manager(bus);
+ phosphor::time::BmcEpoch bmc(bus, OBJPATH_BMC, manager);
bus.request_name(BUSNAME);