diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-06-09 00:54:49 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-06-09 00:54:49 +0300 |
commit | 38dd4e09ce9650370deb1bd9463b0638439e0878 (patch) | |
tree | e1c205fd21b13779a389adca782023d0e79afd6b /charts.d/cpufreq.chart.sh | |
parent | ab5c7880c7bdf6058c17e869bb4ad1ab8be7eed4 (diff) |
prevent a cat command on each iteration
Diffstat (limited to 'charts.d/cpufreq.chart.sh')
-rwxr-xr-x | charts.d/cpufreq.chart.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/charts.d/cpufreq.chart.sh b/charts.d/cpufreq.chart.sh index 008ffe1d70..23e30dfb32 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" |