Add space between file size and unit suffix

As per http://dev.yorhel.nl/ncdu/bug/31
This commit is contained in:
Yorhel 2013-07-23 10:38:37 +02:00
parent 0e9e6d511a
commit 532c32c884
2 changed files with 6 additions and 6 deletions

View file

@ -142,8 +142,8 @@ static void browse_draw_item(struct dir *n, int row) {
x = 0; x = 0;
mvprintw(row, x, "%c %8s ", ct, size); mvprintw(row, x, "%c %9s ", ct, size);
x += 11; x += 12;
if (show_items) { if (show_items) {
if (n->items > 99999) if (n->items > 99999)
@ -169,7 +169,7 @@ static void browse_draw_item(struct dir *n, int row) {
void browse_draw() { void browse_draw() {
struct dir *t; struct dir *t;
char fmtsize[9], *tmp; char fmtsize[10], *tmp;
int selected = 0, i; int selected = 0, i;
erase(); erase();

View file

@ -58,7 +58,7 @@ char *cropstr(const char *from, int s) {
char *formatsize(int64_t from) { char *formatsize(int64_t from) {
static char dat[9]; /* "xxx.xMiB" */ static char dat[10]; /* "xxx.x MiB" */
float r = from; float r = from;
char c = ' '; char c = ' ';
if (si) { if (si) {