Modified CPU-temperature detection for better working on systems with...
... external Temp-sensors...
This commit is contained in:
parent
204c2ab507
commit
9325017ff9
2 changed files with 3 additions and 2 deletions
|
@ -1 +1 @@
|
|||
var dashboard_version = "2021-04-26 15:10:01";
|
||||
var dashboard_version = "2021-04-26 21:09:52";
|
||||
|
|
|
@ -279,7 +279,8 @@ async def view_log(websocket, path):
|
|||
cpu_temp = "N/A"
|
||||
for name, entries in temps.items():
|
||||
for entry in entries:
|
||||
cpu_temp = str(entry.current)
|
||||
if entry.label or name == "cpu_thermal":
|
||||
cpu_temp = str(entry.current)
|
||||
cpufrqs = psutil.cpu_freq()
|
||||
cpufrq = "N/A"
|
||||
if cpufrqs:
|
||||
|
|
Loading…
Reference in a new issue