Fixed some file does not exists output

This commit is contained in:
Christian Schmidt
2010-06-21 21:02:43 +02:00
parent 0bc58278b9
commit 03baaf780e

View 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 = (
"-",