remove commented cpu temp command

This commit is contained in:
Hristo Jelev
2021-10-05 00:30:44 +03:00
parent 88a8851b40
commit 09606007f3

View File

@@ -52,7 +52,6 @@ def check_memory():
return memory return memory
def check_cpu_temp(): def check_cpu_temp():
#full_cmd = "vcgencmd measure_temp"
full_cmd = "cat /sys/class/thermal/thermal_zone*/temp | sed 's/\(.\)..$//' | tail -n 1" full_cmd = "cat /sys/class/thermal/thermal_zone*/temp | sed 's/\(.\)..$//' | tail -n 1"
try: try:
p = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0] p = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]