5 sec update frequency

This commit is contained in:
l_samenv
2024-09-13 17:07:24 +02:00
parent 86fa5e1a8b
commit 9105a5cb41
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,11 @@ The WEB GUI client of SEA.
This repository contains the code of the server for the control and graphical parts, plus the client code (HTML, CSS, JS).
**IMPORTANT**
This version has an update frequency of 5 seconds in order to have a software that can be used for a certain amount of time without crashing (due to memory leaks of ChartJS 2.9.4).
A migration attempt can be found on the branch `chartjs-migration`.
**Summary**
- [Documentation](#documentation)

View File

@ -82,7 +82,7 @@ def get_update(path=None):
yield to_json_sse(msg)
if messages:
lastmsg = time.time()
gevent.sleep(0.1)
gevent.sleep(5)
else:
if time.time() > lastmsg + 30:
if not client.info():