Fix: openwrt widget handle null id in json rpc responses and cpu load representation (#3576)
This commit is contained in:
1 parent
ccc27142ef
commit
9803ef70c6
2 files changed
+5
-1
No files matched your search
@@ -77,7 +77,7 @@ async function fetchSystem(url) {
|
||||
const systemResponse = JSON.parse(data.toString())[1];
|
||||
const response = {
|
||||
uptime: systemResponse.uptime,
|
||||
cpuLoad: systemResponse.load[1],
|
||||
cpuLoad: (systemResponse.load[1] / 65536.0).toFixed(2),
|
||||
};
|
||||
return [200, contentType, response];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user