Fix: cpu load representation for openwrt widget
This commit is contained in:
parent
add54c9eaa
commit
91fb11e722
@ -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];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user