Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Apr 19, 2020
1 parent c726779 commit f616871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnagotchi/plugins/default/watchdog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def on_loaded(self):

def on_epoch(self, agent, epoch, epoch_data):
# get last 10 lines
last_lines = ''.join(list(TextIOWrapper(subprocess.Popen(['journalctl','-n10','-k', '--since', '"5 minutes ago"'],
last_lines = ''.join(list(TextIOWrapper(subprocess.Popen(['journalctl','-n10','-k', '--since', '-5m'],
stdout=subprocess.PIPE).stdout))[-10:])
if len(self.pattern.findall(last_lines)) >= 5:
display = agent.view()
Expand Down

0 comments on commit f616871

Please sign in to comment.