Skip to content

Commit

Permalink
Corect issue whenrunning Glances in server mode and enable cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Mar 16, 2023
1 parent b2be5c9 commit 265699c
Show file tree
Hide file tree
Showing 3 changed files with 538 additions and 1,018 deletions.
8 changes: 3 additions & 5 deletions glances/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,14 +703,12 @@ def parse_args(self):
sys.exit(2)

# Filter is only available in standalone mode
if args.process_filter is not None and not self.is_standalone():
logger.critical("Process filter is only available in standalone mode")
sys.exit(2)
if not args.process_filter and not self.is_standalone():
logger.debug("Process filter is only available in standalone mode")

# Cursor option is only available in standalone mode
if not args.disable_cursor and not self.is_standalone():
logger.critical("Cursor is only available in standalone mode")
sys.exit(2)
logger.debug("Cursor is only available in standalone mode")

# Disable HDDTemp if sensors are disabled
if getattr(self.args, 'disable_sensors', False):
Expand Down

0 comments on commit 265699c

Please sign in to comment.