! 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 !
Proposal to reduce jitter displaying of up/down load values
Status:
RESOLVED: MOVED
Severity:
enhancement
Product:
Xfce4-netload-plugin
Component:
General

Comments

Description Neo 2016-11-13 15:16:23 CET
In order to reduce jitter in the panel due to non fixed area for displayed up/download number, I would like to propose this very simple modification :

Line 116, utils.c
change the original line 
  snprintf(formatstring, BUFSIZ, "%%.%df", digits);
by
snprintf(formatstring, BUFSIZ, "%%%d.%df\t",6, digits);

By doing this, the applet keeps is width regardless of numbers change.
Comment 1 Landry Breuil editbugs 2016-11-13 18:14:57 CET
Hmm, that's a good idea, not sure about the \t though. Will try to test it.. what do you think about it mike ?
Comment 2 Massimo Burcheri 2017-05-19 13:39:24 CEST
I agree that the text display must be aligned somehow. I have several panel items like Frequency Monitor and Disk Performance Monitor. It is hard to detect who is responsible that the items are all moving in the panel when numbers are switching. But I guess it is the Netload Plugin as mentioned.
Comment 3 Skunnyk editbugs 2017-06-08 19:28:27 CEST
This is a good idea, but I'm not sure about the \t + 6,  with it the plugin takes a lots of space and still jitter on hight bandwidth :/
Comment 4 Git Bot editbugs 2017-11-02 23:05:54 CET
Neo referenced this bugreport in commit f854511df31f14ae17869a694e840881993e64e4

Reduce jitter displaying of up/down load values

https://git.xfce.org/panel-plugins/xfce4-netload-plugin/commit?id=f854511df31f14ae17869a694e840881993e64e4
Comment 5 Skunnyk editbugs 2017-11-02 23:16:59 CET
Wooop, sorry, merged by mistake. 

Reverted in 5098cf726692477b1495939cdebab567a9ddf0d9
Comment 6 Massimo Burcheri 2018-06-12 11:59:07 CEST
Is there any progress here? Work-around would be to use fixed width fonts only. But how do I find all available fixed width fonts?
Comment 7 Massimo Burcheri 2020-02-05 08:28:28 CET
Sry, my last comment from 2018 was wrong. I meant, the plugin itself can't set fixed width fonts if not setting that globally.

However, has that been released? As of today using xfce4-netload-plugin-1.3.2 I still have jumping panel items.
Comment 8 Git Bot editbugs 2020-05-23 00:20:22 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-netload-plugin/-/issues/10.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12957

Reported by:
Neo
Reported on: 2016-11-13
Last modified on: 2020-05-23

People

Assignee:
Skunnyk
CC List:
4 users

Version

Attachments

Additional information