lp:~vanvugt/gnome-system-monitor

Owned by Daniel van Vugt
Get this repository:
git clone https://git.launchpad.net/~vanvugt/gnome-system-monitor
Only Daniel van Vugt can upload to this repository. If you are Daniel van Vugt please log in for upload directions.

Branches

Name Last Modified Last Commit
fix-788922-v3 2017-10-27 11:11:33 UTC
Fix inaccurate %CPU values in the Processes table

Author: Daniel van Vugt
Author Date: 2017-10-27 11:11:33 UTC

Fix inaccurate %CPU values in the Processes table

Multi-core machines were displaying inaccurate %CPU values due to a
loss of precision from performing integer division before multiplication.
This changes the order of operations so that no precision is lost, and
now all machines will display process %CPU values to within 1% accuracy.

https://bugzilla.gnome.org/show_bug.cgi?id=788922

fix-788922-v2 2017-10-27 09:58:28 UTC
Fix inaccurate %CPU values in the Processes table

Author: Daniel van Vugt
Author Date: 2017-10-27 09:58:28 UTC

Fix inaccurate %CPU values in the Processes table

In the default mode we had an integer %CPU then being multiplied by
another integer NCPUs. Obviously the result of that multiplication
could only have NCPUs granularity so the processes table for an 8-core
machine would only ever show %CPU = {0, 8, 16, 24, 32, ...} etc.

This fix premultiplies the pcpu value by 1000 so as to maintain three
decimal places accuracy. So then when it's multipled by NCPUs we still
have some fractional precision remaining (at least for machines with
less than 1000 cores). And for regular machines the %CPU column now
shows values to within 1% accuracy.

https://bugzilla.gnome.org/show_bug.cgi?id=788922

fix-788922 2017-10-27 09:39:47 UTC
Fix inaccurate %CPU values in the Processes table

Author: Daniel van Vugt
Author Date: 2017-10-27 09:39:47 UTC

Fix inaccurate %CPU values in the Processes table

In the default mode we had an integer %CPU then being multiplied by
another integer NCPUs. Obviously the result of that multiplication
could only have NCPUs granularity so the processes table for an 8-core
machine would only ever show %CPU = {0, 8, 16, 24, 32, ...} etc.

This fix premultiplies the pcpu value by 1000 so as to maintain three
decimal places accuracy. So then when it's multipled by NCPUs we still
have some fractional precision remaining (at least for machines with
less than 1000 cores). And for regular machines the %CPU column now
shows values to within 1% accuracy.

https://bugzilla.gnome.org/show_bug.cgi?id=788922

13 of 3 results
This repository contains Public information 
Everyone can see this information.

Subscribers