Fix: cpu load representation for openwrt widget

This commit is contained in:
Liran Vaknin 2024-06-04 03:22:23 +03:00
parent add54c9eaa
commit 91fb11e722

View File

@ -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];
}