From f854511df31f14ae17869a694e840881993e64e4 Mon Sep 17 00:00:00 2001 From: Neo Date: Thu, 8 Jun 2017 11:20:19 +0200 Subject: [PATCH] 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 */