From 095b5675df915002b00a2b3f7ba0e95fde7638b5 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Fri, 14 Feb 2025 12:03:49 +0100 Subject: browse: folder size is not computed, do not show it --- browse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/browse.c b/browse.c index d1ea975..4777938 100644 --- a/browse.c +++ b/browse.c @@ -241,7 +241,11 @@ file_template_callback(size_t index, void *arg) K_OK(khtml_puts(html, data->f->action_url), r); break; case 3: - /* size, print as human readable */ + /* size, only for files, print as human readable */ + if (data->f->is_dir) { + break; + } + file_size = data->f->size; i = 0; while (file_size > 1024 && i < 3) { -- cgit v1.2.3