aboutsummaryrefslogtreecommitdiffstats
path: root/stats.pl
diff options
context:
space:
mode:
Diffstat (limited to 'stats.pl')
-rwxr-xr-xstats.pl5
1 files changed, 5 insertions, 0 deletions
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;