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
master
Neo 2017-06-08 11:20:19 +02:00 committed by Romain B
parent 8e23bbcb6a
commit f854511df3
1 changed files with 1 additions and 1 deletions

View File

@ -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 */