From 90ae8aab3d781e12982ce56f371a79212917f498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:51:19 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/main.py b/bin/main.py index 068d37d..fbcbc17 100644 --- a/bin/main.py +++ b/bin/main.py @@ -71,7 +71,7 @@ def get_address(): # 获取当前的IP地址 def cpu_temperature(): # CPU温度获取 temperatura = os.popen('vcgencmd measure_temp').readline() temperatura = temperatura.replace('temp=', '').strip() - return str(temperatura + return str(temperatura) def memory_footprint(): # 显示内存占用百分比 return (subprocess.check_output(u"free -m | awk -F '[ :]+' 'NR==2{printf \"%d\", ($3)/$2*100}'", shell=True).decode('gbk'))