Skip to content

Commit

Permalink
change treshhold to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Apr 18, 2020
1 parent 1013e7d commit 56c291d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builder/data/usr/bin/pwnlib
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pwnagotchi/plugins/default/watchdog.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def on_epoch(self, agent, epoch, epoch_data):
# 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)
Expand Down

0 comments on commit 56c291d

Please sign in to comment.