aboutsummaryrefslogtreecommitdiffstats
path: root/stats.pl
diff options
context:
space:
mode:
Diffstat (limited to 'stats.pl')
-rwxr-xr-xstats.pl17
1 files changed, 2 insertions, 15 deletions
diff --git a/stats.pl b/stats.pl
index 726ceea..ef4442e 100755
--- a/stats.pl
+++ b/stats.pl
@@ -108,18 +108,7 @@ for my $group (sort keys %$groups) {
$groups->{$group}->{'comments'} = $comments; #defined($comments) ? $comments : 0;
}
-my $group_info = {
-# rrd_groups => {},
-# position => {},
-# balance => {},
-# uptime => {},
-# downtime => {},
-# maintenance => {},
-
-# users => {},
-# posts => {},
-# comments => {},
- };
+my $group_info = {};
my %g_rrd_info = (
destination => "$rrd_path/graph",
@@ -164,9 +153,7 @@ for my $group (sort keys %$groups) {
comments => $groups->{$group}->{'comments'},
);
- unless ( -d "$rrd_path/graph/$group" ) {
- mkdir "$rrd_path/graph/$group";
- }
+ mkdir "$rrd_path/graph/$group" unless ( -d "$rrd_path/graph/$group" );
$uptime_rrd->graph(
%rrd_info,