]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Fix makegraphs settings readerror
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 28 Sep 2008 17:01:11 +0000 (19:01 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 28 Sep 2008 17:01:11 +0000 (19:01 +0200)
src/scripts/makegraphs

index 72bf77dbad9b3d26f6232e47c49e83ff3340811c..5369ab9d9e78102e4add650a74cd0983a5fb31d5 100644 (file)
@@ -46,7 +46,7 @@ sub updatehdddata
         my $standby;
         my @array = split(/\//,$disk);
 
-        if ( ! -e "$rrdlog/hddshutdown-".$array[$#array].".rrd"){
+        if ( ! -e "$mainsettings{'RRDLOG'}/hddshutdown-".$array[$#array].".rrd"){
                 # database did not exist -> create
                 RRDs::create ("$mainsettings{'RRDLOG'}/hddshutdown-".$array[$#array].".rrd", "--step=300",
                 "DS:standby:GAUGE:600:0:1",