From 77fa78e4116b46e3b826c1f0a20b5e0a87c1f132 Mon Sep 17 00:00:00 2001 From: Floran Brutel Date: Tue, 8 Oct 2019 21:49:55 +0200 Subject: [PATCH] Fix custom refresh time in the web UI --- glances/main.py | 3 +-- glances/outputs/glances_bottle.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/glances/main.py b/glances/main.py index 24efe84a..c818b13e 100644 --- a/glances/main.py +++ b/glances/main.py @@ -301,9 +301,8 @@ Examples of use: if WINDOWS: args.webserver = True - # In web server mode, default refresh time: 5 sec + # In web server mode if args.webserver: - args.time = 5 args.process_short_name = True # Server or client login/password diff --git a/glances/outputs/glances_bottle.py b/glances/outputs/glances_bottle.py index 8bd8991c..0b480276 100644 --- a/glances/outputs/glances_bottle.py +++ b/glances/outputs/glances_bottle.py @@ -225,7 +225,7 @@ class GlancesBottle(object): """Bottle callback for index.html (/) file.""" if refresh_time is None or refresh_time < 1: - refresh_time = self.args.time + refresh_time = int(self.args.time) # Update the stat self.__update__() -- GitLab