From: Costa Tsaousis (ktsaou) Date: Wed, 8 Jun 2016 21:54:49 +0000 (+0300) Subject: prevent a cat command on each iteration X-Git-Tag: v1.3.0~149^2~3 X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=commitdiff_plain;h=38dd4e09ce9650370deb1bd9463b0638439e0878 prevent a cat command on each iteration --- diff --git a/charts.d/cpufreq.chart.sh b/charts.d/cpufreq.chart.sh index 008ffe1d..23e30dfb 100755 --- a/charts.d/cpufreq.chart.sh +++ b/charts.d/cpufreq.chart.sh @@ -54,7 +54,7 @@ cpufreq_create() { echo >&2 "charts.d: cpufreq: on file='$file', dir='$dir', cpu='$cpu', id='$id'" echo "DIMENSION $id '$id' absolute 1 1000" - echo >>$TMP_DIR/cpufreq.sh "printf \"SET $id = \"; cat $file " + echo >>$TMP_DIR/cpufreq.sh "echo \"SET $fid = \"\$(< $file )" done echo >>$TMP_DIR/cpufreq.sh "echo END"