From e61ffe98c307c85889722e9482417e22192f2700 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 14 Oct 2018 15:32:42 +1000 Subject: [PATCH] fix file size on web --- src/www_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www_files.c b/src/www_files.c index dddaf33..44f4b2c 100644 --- a/src/www_files.c +++ b/src/www_files.c @@ -337,7 +337,6 @@ char *www_files_display_listing(int dir, int sub) { size = sqlite3_column_int(res, 3); stralloc_cats(&page, ""); - stralloc_cat_long(&page, size); int c = 'b'; if (size > 1024) { size /= 1024; @@ -351,6 +350,7 @@ char *www_files_display_listing(int dir, int sub) { size /= 1024; c = 'G'; } + stralloc_cat_long(&page, size); stralloc_append1(&page, c); stralloc_cats(&page, "");