summaryrefslogtreecommitdiffstats
path: root/glances
diff options
context:
space:
mode:
authorFloran Brutel <contact@floran.fr>2019-10-08 21:49:55 +0200
committerFloran Brutel <contact@floran.fr>2019-10-08 21:49:55 +0200
commit77fa78e4116b46e3b826c1f0a20b5e0a87c1f132 (patch)
treef8093cecd16f4f3f2f56a44d0e9d7512c7fecede /glances
parent89f836958a1a9c9eaffd81eaf26e26e8fac1e579 (diff)
Fix custom refresh time in the web UI
Diffstat (limited to 'glances')
-rw-r--r--glances/main.py3
-rw-r--r--glances/outputs/glances_bottle.py2
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__()