@cryptotaxi247 / netdata-1 / commits / 38dd4e09c

prevent a cat command on each iteration

Costa Tsaousis (ktsaou) committed Jun 9, 2016 at 00:54 UTC 38dd4e09ce9650370deb1bd9463b0638439e0878
1 file changed +1 -1
charts.d/cpufreq.chart.sh
+1 -1
@@ -54,7 +54,7 @@ cpufreq_create() {
54 echo >&2 "charts.d: cpufreq: on file='$file', dir='$dir', cpu='$cpu', id='$id'"
55
56 echo "DIMENSION $id '$id' absolute 1 1000"
57 - echo >>$TMP_DIR/cpufreq.sh "printf \"SET $id = \"; cat $file "
57 + echo >>$TMP_DIR/cpufreq.sh "echo \"SET $fid = \"\$(< $file )"
58 done
59 echo >>$TMP_DIR/cpufreq.sh "echo END"
60