]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/hardwaregraphs.cgi
3 step in tuning 2.3
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / hardwaregraphs.cgi
index 3bdad6404141835ebe936422898a84089ce40e45..73885a0d7e6445d28d9e8429208e594ad93c975c 100644 (file)
@@ -22,8 +22,8 @@
 use strict;
 
 # enable only the following on debugging purpose
-use warnings;
-use CGI::Carp 'fatalsToBrowser';
+#use warnings;
+#use CGI::Carp 'fatalsToBrowser';
 
 require '/var/ipfire/general-functions.pl';
 require "${General::swroot}/lang.pl";
@@ -36,10 +36,9 @@ my %mainsettings = ();
 &General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color);
 
 my %sensorsettings = ();
-my $rrdlog = "/var/log/rrd";
 
 my @sensorsgraphs = ();
-my @sensorsdir = `ls -dA $rrdlog/collectd/localhost/sensors-*/`;
+my @sensorsdir = `ls -dA $mainsettings{'RRDLOG'}/collectd/localhost/sensors-*/`;
 foreach (@sensorsdir){
        chomp($_);chop($_);
        foreach (`ls $_/*`){