fixes page number calculation

This commit is contained in:
2026-02-13 14:34:29 +02:00
parent fad725f919
commit 23c4d467d0
+1 -1
View File
@@ -70,7 +70,7 @@ void file_list(session *sess, server_data_t *s_d, i_file_list_t *f_args) {
pages_count = full_count / f_args->limit; pages_count = full_count / f_args->limit;
if (!pages_count) if (!pages_count)
pages_count = 1; pages_count = 1;
if (pages_count > 1 && (pages_count % f_args->limit)) if ((full_count > f_args->limit) && (pages_count % f_args->limit))
pages_count++; pages_count++;
sprintf(page_info, ":END: PAGE %u/%lu COUNT: %lu/%lu\n", f_args->page, sprintf(page_info, ":END: PAGE %u/%lu COUNT: %lu/%lu\n", f_args->page,