From eeeb7a8f73702be82ee254f707b91c5d1b7c1880 Mon Sep 17 00:00:00 2001 From: Gabriel Saillard Date: Mon, 22 Feb 2021 11:23:39 +0100 Subject: [PATCH] fix(mod_cpuinfo): cpu speed not displaying --- src/classes/cpuinfo.class.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/classes/cpuinfo.class.js b/src/classes/cpuinfo.class.js index e24abb30..1ba9970c 100644 --- a/src/classes/cpuinfo.class.js +++ b/src/classes/cpuinfo.class.js @@ -41,7 +41,7 @@ class Cpuinfo { ${(process.platform === "win32") ? data.cores : "--°C"}
-

MIN
+

SPD
--GHz

@@ -153,10 +153,10 @@ class Cpuinfo { }); } updateCPUspeed() { - window.si.cpuCurrentspeed().then(data => { + window.si.cpu().then(data => { try { - document.getElementById("mod_cpuinfo_speed_min").innerText = `${data.min}GHz`; - document.getElementById("mod_cpuinfo_speed_max").innerText = `${data.max}GHz`; + document.getElementById("mod_cpuinfo_speed_min").innerText = `${data.speed}GHz`; + document.getElementById("mod_cpuinfo_speed_max").innerText = `${data.speedMax}GHz`; } catch(e) { // See above notice }