mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-21 00:01:53 +03:00
Fix custom refresh time in the web UI
This commit is contained in:
parent
89f836958a
commit
77fa78e411
@ -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
|
||||
|
@ -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__()
|
||||
|
Loading…
Reference in New Issue
Block a user