CPU Speed always prints max value
See original GitHub issueDescribe the bug Wether I use the cpu or cpuCurrentspeed I always the max value of my CPU not the current one.
I am running Windows 10.
To Reproduce Steps to reproduce the behavior:
- used function ‘si.cpu’ and ‘si.cpuCurrentspeed’ and I always get the same value, in min, max and average.
- code snippet `const si = require(“systeminformation”);
// promises style - new since version 3 const cpu = () => si .cpu() .then((data) => { console.log(“CPU Information:”); console.log(“- speed: " + data.speed); console.log(”…"); }) .catch((error) => console.error(error));
const cpuCurrentSpeed = () => si.cpuCurrentspeed().then((data) => { console.log(“CPU SPEED INformation”); console.log(data); });
const cpuLogging = setInterval(() => { cpu(); cpuCurrentSpeed(); }, 500);` 3. start app / code 4. See output/error No output error, just wrong values?
Current Output I always get the value 3,79
Expected behavior In my task manager I can see the cpu get values between 1.4GHZ and 2.5GHz because not doing any heavy tasks but output value is always 3,79.
Environment (please complete the following information):
- systeminformation package version: “^4.23.3”
- OS: Windows 10 Pro
Additional context Add any other context about the problem here.
I tried looking for answers in google and the Issues section but didn’t find anything. Thanks in advance. Still the tool is awesome!
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
closing this for now, as I do not really see a way to solve this.
@sebhildebrandt Unfortunately not 😅😅😅