You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One such message is here (this time it was 110% CPU usage apparently):
{"result":{"data":{"type":"three-stats","link":"?dialog=live-usage","refresh":10000,"items":[{"icon":"system-widget-cpu","subtext":"CPU","text":"1.1e+2%"},{"icon":"system-widget-memory","subtext":"Memory","text":"2.15 GB"},{"icon":"system-widget-storage","subtext":"Storage","text":"1.52 GB"}]}}}
I think I found the error in this code, it sets the precision to two decimal places which therefore has to show larger values than 99 in exponential notation:
Sometimes the CPU usage is at 100% (and sometimes it shows more, don't ask me why or how). The Live Usage widget will show the CPU usage as "1.0e+2%"
The error is in the message itself that is retrieved by GET http://umbrel.local/trpc/widget.data?input={"widgetId":"umbrel:system-stats"}
One such message is here (this time it was 110% CPU usage apparently):
{"result":{"data":{"type":"three-stats","link":"?dialog=live-usage","refresh":10000,"items":[{"icon":"system-widget-cpu","subtext":"CPU","text":"1.1e+2%"},{"icon":"system-widget-memory","subtext":"Memory","text":"2.15 GB"},{"icon":"system-widget-storage","subtext":"Storage","text":"1.52 GB"}]}}}
I think I found the error in this code, it sets the precision to two decimal places which therefore has to show larger values than 99 in exponential notation:
umbrel/packages/umbreld/source/modules/system-widgets.ts
Line 54 in 7103e98
If I knew javascript I would try to fix it myself and do a pull request but I don't program in javascript (or typescript, it looks the same to me).
The text was updated successfully, but these errors were encountered: