mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-14 03:50:10 -04:00
Correct issue #273 / Don't warn a process is not running if countmin=0
This commit is contained in:
@@ -2149,7 +2149,10 @@ class glancesScreen:
|
||||
else:
|
||||
return 'WARNING'
|
||||
else:
|
||||
return 'CRITICAL'
|
||||
if countmin == 0:
|
||||
return 'OK'
|
||||
else:
|
||||
return 'CRITICAL'
|
||||
|
||||
def __getMonitoredColor(self, nbprocess=0, countmin=1, countmax=1):
|
||||
return self.__colors_list2[self.__getMonitoredAlert(nbprocess, countmin, countmax)]
|
||||
|
||||
Reference in New Issue
Block a user