! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Incorrect bar sizes in v1.2.0
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-systemload-plugin
Component:
General

Comments

Description skontar 2016-11-21 15:39:30 CET
Created attachment 6904 
Screenshot

After updating xfce4-systemload-plugin from 1.1.2 to 1.2.0, the bars seem to have non-zero offset. E.g. for zero value they seem to show non-zero size. Attached picture should show 0% CPU, 21% memory, and 0% swap. It seems to show about 21% CPU, 39% memory, and 21% swap based on number of pixels.

Downgrading fixes the problem immediately. Different theme does not matter.
Comment 1 Comatose 2016-11-21 20:59:32 CET
I see this also after Fedora pushed and update to v1.2.0.
Comment 2 skontar 2016-11-22 09:04:12 CET
Weird though, this happens on my Fedora 24 laptop, but seems to work fine on my Fedora 23 desktop.
Comment 3 Jan Hutař 2016-11-22 23:06:40 CET
Same here after upgrade to Fedora 25 (xfce4-systemload-plugin-1.2.0-1.fc25.x86_64). I can see same issue for disk performance plugin (xfce4-diskperf-plugin-2.6.0-1.fc25.x86_64).
Comment 4 skontar 2016-11-22 23:16:09 CET
I was looking at the code. The way how the progress bar fraction is set seems to be the same. Also the way how the values are computed and read from the system are same for CPU and swap (there is a change for memory). I have checked that my Fedora 23 box also has 1.2.0 installed - but it works. 

May the problem be in some other library, like Gtk? This plugin recently switched from Gtk2 to Gtk3.
Comment 5 Landry Breuil editbugs 2016-12-01 13:03:59 CET
Dupe, known bug in Gtk3, see https://bugzilla.gnome.org/show_bug.cgi?id=774695

*** This bug has been marked as a duplicate of bug 12942 ***

Bug #12974

Reported by:
skontar
Reported on: 2016-11-21
Last modified on: 2016-12-24

People

Assignee:
Xfce-Goodies Maintainers
CC List:
3 users

Version

Version:
unspecified

Attachments

Screenshot (335 bytes, image/png)
2016-11-21 15:39 CET , skontar
no flags

Additional information