mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 20:21:35 +03:00
Merge branch 'hotfix/issue378'
This commit is contained in:
commit
0cad93d31a
@ -78,7 +78,12 @@ class MonitorList(object):
|
||||
if description is not None and regex is not None:
|
||||
# Build the new item
|
||||
value["description"] = description
|
||||
value["regex"] = regex
|
||||
try:
|
||||
re.compile(regex)
|
||||
except:
|
||||
continue
|
||||
else:
|
||||
value["regex"] = regex
|
||||
value["command"] = command
|
||||
value["countmin"] = countmin
|
||||
value["countmax"] = countmax
|
||||
|
Loading…
Reference in New Issue
Block a user