Fix custom refresh time in the web UI

上级 89f83695
...@@ -301,9 +301,8 @@ Examples of use: ...@@ -301,9 +301,8 @@ Examples of use:
if WINDOWS: if WINDOWS:
args.webserver = True args.webserver = True
# In web server mode, default refresh time: 5 sec # In web server mode
if args.webserver: if args.webserver:
args.time = 5
args.process_short_name = True args.process_short_name = True
# Server or client login/password # Server or client login/password
......
...@@ -225,7 +225,7 @@ class GlancesBottle(object): ...@@ -225,7 +225,7 @@ class GlancesBottle(object):
"""Bottle callback for index.html (/) file.""" """Bottle callback for index.html (/) file."""
if refresh_time is None or refresh_time < 1: if refresh_time is None or refresh_time < 1:
refresh_time = self.args.time refresh_time = int(self.args.time)
# Update the stat # Update the stat
self.__update__() self.__update__()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册