diff options
-rwxr-xr-x | stats.pl | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -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, |