Never display B/s values in panel, start with KiB/s

master
Mike Massonnet 2012-01-13 12:01:55 +01:00
parent 713440369a
commit a331712b49
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ char* format_byte_humanreadable(char* string, int stringsize, double number, int
char buffer[BUFSIZ], formatstring[BUFSIZ]; char buffer[BUFSIZ], formatstring[BUFSIZ];
char* bufptr = buffer; char* bufptr = buffer;
char* unit_names[] = { N_("B"), N_("KiB"), N_("MiB"), N_("GiB") }; char* unit_names[] = { N_("B"), N_("KiB"), N_("MiB"), N_("GiB") };
unsigned int uidx = 0; unsigned int uidx = 1;
double number_displayed = number; double number_displayed = number / 1024.0;
unsigned int i; unsigned int i;
int numberOfIntegerChars, count; int numberOfIntegerChars, count;
struct lconv* localeinfo = localeconv(); struct lconv* localeinfo = localeconv();