parse_loadmon: outputs date

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
Jed Reynolds
2022-05-25 10:04:43 -07:00
committed by shivam
parent 1812654643
commit ac25580677

View File

@@ -40,6 +40,7 @@ while (my $line=<STDIN>) {
my $lc_pos = index($line, '[{');
# print "lc at $lc_pos\n";
next if ($lc_pos < 0);
print `date`;
my $loadmon_line = substr($line, $lc_pos);
my $ra_loadmon = parse_json($loadmon_line);
#print Dumper($ra_loadmon);