From 03baaf780efa355effe618233e7c67eb347f1567 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Mon, 21 Jun 2010 21:02:43 +0200 Subject: [PATCH] Fixed some file does not exists output --- config/cfgroot/graphs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ( "-", -- 2.39.2