You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to a switching from amperes to watts for power supply in the latest kernels updates, I had to slightly modify cpug.py and investigator.py to make this application work properly on my Manjaro (18.1.5, Xfce stable, kernel 4.19.96-1, Pyhon 3.8.1) box with french locale and displaying now Xorg version, accurate distro logo, battery charges: now, full, full design and power now with the good units (Wh & W).
There is also a subtle bug in the sysdevcpu function in investigator.py. This bug only occur if /proc/cpuinfo and /sys/devices/system/cpu/ don't return the same number of cores. Then sysdevcpu function try to print:
print("Error: Cannot decide if the cores are %s or %s.\n" +
"Using the lowest value as the real cores number." %
(self.cpuinfo('coresnum'), coresinsysdev))
which is buggy and should be replaced by:
print("Error: Cannot decide if the cores are %s or %s.\n"
% (self.cpuinfo('coresnum'), coresinsysdev) +
"Using the lowest value as the real cores number.")
I suggest that the python-distro module must be added to the dependencies in order to use all my suggested modifications in the two diff files (in the attached tar.gz part) which covers the different modifications that I think are necessary.
Hello,
Due to a switching from amperes to watts for power supply in the latest kernels updates, I had to slightly modify
cpug.py
andinvestigator.py
to make this application work properly on my Manjaro (18.1.5, Xfce stable, kernel 4.19.96-1, Pyhon 3.8.1) box with french locale and displaying now Xorg version, accurate distro logo, battery charges: now, full, full design and power now with the good units (Wh & W).There is also a subtle bug in the
sysdevcpu
function ininvestigator.py
. This bug only occur if/proc/cpuinfo
and/sys/devices/system/cpu/
don't return the same number of cores. Thensysdevcpu
function try to print:which is buggy and should be replaced by:
I suggest that the
python-distro
module must be added to the dependencies in order to use all my suggested modifications in the two diff files (in the attached tar.gz part) which covers the different modifications that I think are necessary.diff_cpug_investigator-1414aad.tar.gz
Thanks to take a look.
The text was updated successfully, but these errors were encountered: