How can I display an accurate calculation of CPU use in percent
问题 I'm aware this question has been asked numerous times over but unfortunately none of the given answers seem to work for what I need. Everyone seems to recommend /proc/stat however I can't seem to find 1 answer that works as expected: as you can see here, core 0 reports being 16% used even though it's actually only 3% used in fact it doesn't matter if it's 100%, it still reports 16% with only a 0.01%-0.02% increase I've also tested another approach with only $2+$4 +$5 rather than the whole