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