[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 04/06: Reduce jitter displaying of up/down load values
noreply at xfce.org
noreply at xfce.org
Thu Nov 2 23:05:47 CET 2017
This is an automated email from the git hooks/post-receive script.
s k u n n y k p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-netload-plugin.
commit f854511df31f14ae17869a694e840881993e64e4
Author: Neo <rdstmc at free.fr>
Date: Thu Jun 8 11:20:19 2017 +0200
Reduce jitter displaying of up/down load values
- This way the plugin does not jitter in the panel due to non fixed area for displayed up/download number
- Fix bug #12957
---
panel-plugin/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/panel-plugin/utils.c b/panel-plugin/utils.c
index 7336034..8143ee7 100644
--- a/panel-plugin/utils.c
+++ b/panel-plugin/utils.c
@@ -113,7 +113,7 @@ char* format_byte_humanreadable(char* string, int stringsize, double number, int
}
/* format number first */
- snprintf(formatstring, BUFSIZ, "%%.%df", digits);
+ snprintf(formatstring, BUFSIZ, "%%%d.%df\t",6, digits);
snprintf(buffer, BUFSIZ, formatstring, number_displayed);
/* get the number of integer characters */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list