mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-21 08:03:42 +08:00
use iterator to loop over first 1000 entries (#2359)
This commit is contained in:
@@ -49,7 +49,7 @@ if __name__ == "__main__":
|
||||
|
||||
if sm.updated['thermal']:
|
||||
t = sm['thermal']
|
||||
last_temp = np.mean([t.cpu0, t.cpu1, t.cpu2, t.cpu3]) / 10.
|
||||
last_temp = np.mean(t.cpu)
|
||||
last_mem = t.memUsedPercent
|
||||
|
||||
if sm.updated['procLog']:
|
||||
|
||||
Reference in New Issue
Block a user