question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CPU Speed always prints max value

See original GitHub issue

Describe 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:

  1. used function ‘si.cpu’ and ‘si.cpuCurrentspeed’ and I always get the same value, in min, max and average.
  2. 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:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sebhildebrandtcommented, Apr 19, 2020

closing this for now, as I do not really see a way to solve this.

0reactions
turutupacommented, Apr 19, 2020

@sebhildebrandt Unfortunately not 😅😅😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

CPU clock speed always at max - Tom's Hardware Forum
The CPU idling down as low as 800 MHz is normal, it should only jump to ... Might want to check what min...
Read more >
CPU is always at max frequency [SOLVED] - Dell Community
I use the Balanced power plan with minimum 5% frequency. But it is ignored and it is always at full speed. Weird thing...
Read more >
What does the "Maximum Frequency" number mean in the ...
It simply means of the total maximum of your processors normal speed. With speed step, power saving and everything else disabled, ...
Read more >
Why is my CPU speed more than the maximum CPU speed?
So first thing first understand this : A processor has a range of speed, the lowest speed is its base speed and its...
Read more >
FIX: CPU Not Running at Full Speed in Windows 10.
All methods tried, but only Method 4 made a difference. A variation worth trying is as follows. Setting the Start value of intelppm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found