diff options
-rw-r--r-- | src/store/plugins/WebSocketPlugin.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/store/plugins/WebSocketPlugin.js b/src/store/plugins/WebSocketPlugin.js index 1988a241..8f1acb0c 100644 --- a/src/store/plugins/WebSocketPlugin.js +++ b/src/store/plugins/WebSocketPlugin.js @@ -18,6 +18,7 @@ const WebSocketPlugin = (store) => { interfaces: [ 'xyz.openbmc_project.State.Host', 'xyz.openbmc_project.Logging.Entry', + 'xyz.openbmc_project.Time.EpochTime', ], }; @@ -43,7 +44,7 @@ const WebSocketPlugin = (store) => { if (CurrentHostState) { store.commit('global/setServerStatus', CurrentHostState); } - } else if (path === '/xyz/openbmc_project/time/bmc') { + } else if (eventInterface === 'xyz.openbmc_project.Time.EpochTime') { const { properties: { Elapsed } = {} } = data; if (Elapsed) { let millis = (+Elapsed - (+Elapsed % 1000)) / 1000; |