diff --git a/README.md b/README.md index 30415e5..a53007c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/seaweb.py b/seaweb.py index 0bb15b7..7175095 100755 --- a/seaweb.py +++ b/seaweb.py @@ -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():