5 sec update frequency
This commit is contained in:
@ -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).
|
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**
|
**Summary**
|
||||||
|
|
||||||
- [Documentation](#documentation)
|
- [Documentation](#documentation)
|
||||||
|
@ -82,7 +82,7 @@ def get_update(path=None):
|
|||||||
yield to_json_sse(msg)
|
yield to_json_sse(msg)
|
||||||
if messages:
|
if messages:
|
||||||
lastmsg = time.time()
|
lastmsg = time.time()
|
||||||
gevent.sleep(0.1)
|
gevent.sleep(5)
|
||||||
else:
|
else:
|
||||||
if time.time() > lastmsg + 30:
|
if time.time() > lastmsg + 30:
|
||||||
if not client.info():
|
if not client.info():
|
||||||
|
Reference in New Issue
Block a user