change treshhold to 5

This commit is contained in:
dadav 2020-04-18 18:19:16 +02:00
parent 1013e7dc19
commit 56c291d302
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ blink_led() {
# check if brcm is stuck
check_brcm() {
if [[ "$(journalctl -n10 -k | grep -c 'brcmf_cfg80211_nexmon_set_channel.*Set Channel failed')" -ge 3 ]]; then
if [[ "$(journalctl -n10 -k | grep -c 'brcmf_cfg80211_nexmon_set_channel.*Set Channel failed')" -ge 5 ]]; then
return 1
fi
return 0

View File

@ -26,7 +26,7 @@ class Watchdog(plugins.Plugin):
# get last 10 lines
last_lines = ''.join(list(TextIOWrapper(subprocess.Popen(['journalctl','-n10','-k'],
stdout=subprocess.PIPE).stdout))[-10:])
if len(self.pattern.findall(last_lines)) >= 3:
if len(self.pattern.findall(last_lines)) >= 5:
display = agent.view()
display.set('status', 'Blind-Bug detected. Restarting.')
display.update(force=True)