summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 53ca7782..0b5f070b 100644
--- a/glances/main.py
+++ b/glances/main.py
@@ -309,9 +309,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__()