From: Christian Schmidt Date: Mon, 21 Jun 2010 19:02:43 +0000 (+0200) Subject: Fixed some file does not exists output X-Git-Tag: v2.9-beta1~209 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=03baaf780efa355effe618233e7c67eb347f1567 Fixed some file does not exists output --- diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl index 3418c68a23..c300b0ac4a 100644 --- a/config/cfgroot/graphs.pl +++ b/config/cfgroot/graphs.pl @@ -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 = ( "-",