diff options
author | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-10-05 09:27:17 +0300 |
---|---|---|
committer | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-10-05 09:27:17 +0300 |
commit | 65f1b84d6a5031093a0d35c9a727184155e87c7e (patch) | |
tree | 02b50f562daafb43d3fb31d0a37dddc3aa4a0c69 /src/store | |
parent | 1ecf9b7baa785f57fcdf97b4ccee39473b2fac84 (diff) | |
download | webui-vue-65f1b84d6a5031093a0d35c9a727184155e87c7e.tar.xz |
add ntp to date-time
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/Settings/DateTimeStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/modules/Settings/DateTimeStore.js b/src/store/modules/Settings/DateTimeStore.js index 02854918..d6dcc414 100644 --- a/src/store/modules/Settings/DateTimeStore.js +++ b/src/store/modules/Settings/DateTimeStore.js @@ -56,11 +56,11 @@ const DateTimeStore = { * TODO: remove timeout if backend solves * https://github.com/openbmc/openbmc/issues/3459 */ - const timeoutVal = state.isNtpProtocolEnabled ? 40000 : 0; + const timeoutVal = state.isNtpProtocolEnabled ? 40000 : 100; return await new Promise((resolve, reject) => { setTimeout(() => { return api - .patch(`/redfish/v1/Managers/bmc`, dateTimeData) + .get(`/redfish/v1/Managers/bmc`, dateTimeData) .then(() => resolve()) .catch(() => reject()); }, timeoutVal); |