Add Host Time
If the Time Owner is 'BMC', 'Host', or 'Both' a single time field
is present with a title of "BMC and Host Time".
If the Time Owner is 'Split', meaning the BMC and Host have separate times,
2 time fields are present "BMC Time" and "Host Time".
Tested: Set Time Owner to "BMC" and Time Owner to "Split".
Change-Id: I6399fa30e4489d4bd62250b639e66e60cf9c2426
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/configuration/controllers/date-time-controller.js b/app/configuration/controllers/date-time-controller.js
index 5604df5..cbc7443 100644
--- a/app/configuration/controllers/date-time-controller.js
+++ b/app/configuration/controllers/date-time-controller.js
@@ -21,6 +21,9 @@
function(data) {
$scope.bmc_time =
data.data['/xyz/openbmc_project/time/bmc'].Elapsed / 1000;
+ $scope.host_time =
+ data.data['/xyz/openbmc_project/time/host'].Elapsed / 1000;
+
$scope.time_owner = data.data['/xyz/openbmc_project/time/owner']
.TimeOwner.split('.')
.pop();