Fixed some file does not exists output
authorChristian Schmidt <christian.schmidt@ipfire.org>
Mon, 21 Jun 2010 19:02:43 +0000 (21:02 +0200)
committerChristian Schmidt <christian.schmidt@ipfire.org>
Mon, 21 Jun 2010 19:02:43 +0000 (21:02 +0200)
config/cfgroot/graphs.pl

index 3418c68..c300b0a 100644 (file)
@@ -1042,7 +1042,7 @@ sub updatecpufreqgraph {
 # Generate the Thermal Zone Temp CPU Graph
 
 sub updatethermaltempgraph {
-       my $thermalcount = `ls -dA $mainsettings{'RRDLOG'}/collectd/localhost/thermal-thermal_zone* | wc -l`;
+       my $thermalcount = `ls -dA $mainsettings{'RRDLOG'}/collectd/localhost/thermal-thermal_zone* | wc -l 2>/dev/null`;
        my $period    = $_[0];
        my @command = (
                "-",