fix file size on web
This commit is contained in:
parent
267dbf15b8
commit
e61ffe98c3
@ -337,7 +337,6 @@ char *www_files_display_listing(int dir, int sub) {
|
||||
|
||||
size = sqlite3_column_int(res, 3);
|
||||
stralloc_cats(&page, "<td class=\"filesize\">");
|
||||
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, "</td>");
|
||||
|
||||
|
Reference in New Issue
Block a user