@cryptotaxi247 / netdata-1 / commits / a7f987951

vcgencmd hangs, so it has been removed

Costa Tsaousis (ktsaou) committed Nov 2, 2014 at 21:09 UTC a7f9879510f329fe583db7558ff6d1a5bfa53177
1 file changed -18
charts.d/pi.chart.sh
-18
@@ -11,15 +11,9 @@ pi_create() {
11 cat <<EOF
12 CHART pi.cpu_temp '' "Pi CPU Temperature" "Celcius degrees" pi '' line 30001 $pi_update_every
13 DIMENSION cpu_temp cpu absolute 1 1000
14 -
15 -CHART pi.gpu_temp '' "Pi GPU Temperature" "Celcius degrees" pi '' line 30001 $pi_update_every
16 -DIMENSION gpu_temp gpu absolute 1 1000
17 -
14 CHART pi.clock '' "Pi CPU Clock" "MHz" pi '' line 30003 $pi_update_every
15 DIMENSION cpu_clock clock absolute 1 1000
20 -
16 EOF
22 -
17 return 0
18 }
19
@@ -44,12 +38,6 @@ pi_update() {
38 # even if something goes wrong, no other code can be executed
39
40 local cpuTemp=$(cat /sys/class/thermal/thermal_zone0/temp)
47 -
48 - local gpuTemp=$(/opt/vc/bin/vcgencmd measure_temp)
49 - local gpuTemp=${gpuTemp//\'C/0}
50 - local gpuTemp=${gpuTemp//temp=/}
51 - local gpuTemp=${gpuTemp//\./0}
52 -
41 local cpuSpeed=$(cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq)
42
43 # write the result of the work.
@@ -57,11 +45,6 @@ pi_update() {
45 BEGIN pi.cpu_temp $1
46 SET cpu_temp = $cpuTemp
47 END
60 -
61 -BEGIN pi.gpu_temp $1
62 -SET gpu_temp = $gpuTemp
63 -END
64 -
48 BEGIN pi.clock $1
49 SET cpu_clock = $cpuSpeed
50 END
@@ -70,4 +53,3 @@ VALUESEOF
53
54 return 0
55 }
73 -