diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-18 12:52:55 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-18 12:52:55 +0300 |
commit | ad8f2eedfb5cb87d072dc66532b8a1dafda30af4 (patch) | |
tree | 5c3861304fb265f90593beea94fc5a1057af17ce | |
parent | 0565d35fa489cda6d8154ca6d56c76af14a87ebc (diff) | |
download | webui-vue-ad8f2eedfb5cb87d072dc66532b8a1dafda30af4.tar.xz |
add bmc time from ws 2
-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; |