turns off debug output, updates usage notes

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
Jed Reynolds
2022-05-24 14:57:38 -07:00
committed by shivam
parent 290b83e592
commit 2260cf04c3

View File

@@ -2,9 +2,19 @@
# Follow these message through journalctl using this technique:
#
# Read from a pipe or a fifo:
# sudo ./loadmon | ./parse_loadmon.pl
#
# mkfifo /tmp/load.fifo
# ./parse_loadmon.pl < /tmp/load.fifo
# sudo ./loadmon > /tmp/load.fifo
#
# Loadmon output is now longer than journalctl line limits, so the
# below example will not work:
# sudo ./loadmon.pl | logger -t loadmon
# ...new terminal...
# watch -n15 'journalctl --since "20 sec ago" -t loadmon | ./parse_loadmon.pl'
#
use strict;
@@ -26,7 +36,7 @@ sub mb {
while (my $line=<STDIN>) {
chomp $line;
print "line[$line]\n";
# print "line[$line]\n";
my $lc_pos = index($line, '[{');
# print "lc at $lc_pos\n";
next if ($lc_pos < 0);