From 91fb11e7223c253e708b1f38037afc8a08c1a92c Mon Sep 17 00:00:00 2001 From: Liran Vaknin Date: Tue, 4 Jun 2024 03:22:23 +0300 Subject: [PATCH] Fix: cpu load representation for openwrt widget --- src/widgets/openwrt/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/openwrt/proxy.js b/src/widgets/openwrt/proxy.js index 04c7a503..977db8ca 100644 --- a/src/widgets/openwrt/proxy.js +++ b/src/widgets/openwrt/proxy.js @@ -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]; }