! 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 !
xfce4 battery monitor bar doesnt show correct height
Status:
RESOLVED: INVALID
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Lionel Le Folgoc 2009-03-07 14:50:30 CET
This bug was reported on Ubuntu bugtracker, at https://bugs.launchpad.net/ubuntu/+source/xfce4-battery-plugin/+bug/318913

Version: 0.5.1

The bar that shows the percentage of battery life left does not visually correlate with the percentage shown all of the time. For example, the maximum height of the bar for me is 16 pixels. When I have 49% battery remaining, the bar's height is only 7 pixels. I would think that it should be 8 pixels because 49% is much closer to 50% than it is to 43.75% (7/16). It appears that the algorithm for determining the number of pixels is floor(percentage*16) instead of round(percentage*16).
Comment 1 Lionel Le Folgoc 2009-03-07 14:56:27 CET
Mmh, not so sure the bug is upstream, as we use the sysfs patch, which hasn't been applied yet...

Bug #5058

Reported by:
Lionel Le Folgoc
Reported on: 2009-03-07
Last modified on: 2020-05-21

People

Assignee:
Xfce-Goodies Maintainers
CC List:
1 user

Version

Version:
0.5.1 or older

Attachments

Additional information