Adds backslashes to fix python syntax warning (#117)
Signed-off-by: Matt Nelson <metheos@gmail.com>
This commit is contained in:
@@ -90,7 +90,7 @@ def check_memory():
|
|||||||
|
|
||||||
|
|
||||||
def check_cpu_temp():
|
def check_cpu_temp():
|
||||||
full_cmd = "cat /sys/class/thermal/thermal_zone*/temp 2> /dev/null | sed 's/\(.\)..$//' | tail -n 1"
|
full_cmd = "cat /sys/class/thermal/thermal_zone*/temp 2> /dev/null | 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]
|
||||||
cpu_temp = p.decode("utf-8").strip()
|
cpu_temp = p.decode("utf-8").strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user