]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
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 3418c68a231789142932f6ae8888c56ab5352122..c300b0ac4ae0b29514afe754951452e46a125f40 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 = (
                "-",