Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Server status in Server power operations page
After reboot or shutdown CPU via WebUI, the Server status does not update. The current implementation uses setTimeout() with a timeout of 5 minutes, it means the server power operations page reloads after 5 minutes. The issue is that the power status has really changed but has not been updated on the Server status because of the timeout. Fix the issue by changing setTimeout() to setInterval(). The Server status is updated after each 5 seconds. Fixes: #102 Reference: https://www.educba.com/settimeout-vs-setinterval/ Tested: 1. Power off the CPU via WebUI. 2. WebUI shows Server status as off and a power on button. Change-Id: I31359d970c2aa42f29115102ddbc9cbe85fb168d Signed-off-by: Hieu Huynh <[email protected]> Signed-off-by: HuyLe <[email protected]>
- Loading branch information