From b3f3afd5a377d1bfd008f7dd1e14df9ef2da856c Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sat, 14 Feb 2015 07:46:25 +0100 Subject: Save scoreboard for debugging --- stats.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stats.pl b/stats.pl index e36c9cb..984f5c3 100755 --- a/stats.pl +++ b/stats.pl @@ -40,6 +40,11 @@ if (!defined($content) || !$content || length $content < 1) { exit 1 } +my $now = `date +%Y%m%d-%H%M%S` +open FH, ">$rrd_path/rrd/scoreboard_$now"; +print FH $content; +close FH; + my @content = split /^-+$/m, $content; shift @content; -- cgit v1.2.3