Skip to content

Commit

Permalink
Change the filter order name than cmdline
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Feb 6, 2018
1 parent 8784f4b commit c817015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glances/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def is_filtered(self, process):

if self.filter_key is None:
# Apply filter on command line and process name
return self._is_process_filtered(process, key='cmdline') and self._is_process_filtered(process, key='name')
return self._is_process_filtered(process, key='name') or \
self._is_process_filtered(process, key='cmdline')
else:
# Apply filter on <key>
return self._is_process_filtered(process)
Expand Down

0 comments on commit c817015

Please sign in to comment.