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);
snprintf(formatstring, BUFSIZ, "%%%d.%df\t",6, digits);
By doing this, the applet keeps is width regardless of numbers change.
Hmm, that's a good idea, not sure about the \t though. Will try to test it.. what do you think about it mike ?
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.
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 :/
Neo referenced this bugreport in commit f854511df31f14ae17869a694e840881993e64e4
Reduce jitter displaying of up/down load values
Wooop, sorry, merged by mistake.
Reverted in 5098cf726692477b1495939cdebab567a9ddf0d9
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?
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.
-- 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