Fix custom refresh time in the web UI

This commit is contained in:
Floran Brutel 2019-10-08 21:49:55 +02:00
parent 89f836958a
commit 77fa78e411
No known key found for this signature in database
GPG Key ID: 0A61C46D590F5999
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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__()