Diff

plugins/mod_storage_internal.lua @ 13213:50324f66ca2a

plugins: Use integer config API with interval specification where sensible Many of these fall into a few categories: - util.cache size, must be >= 1 - byte or item counts that logically can't be negative - port numbers that should be in 1..0xffff
author Kim Alvefur <zash@zash.se>
date Mon, 17 Jul 2023 01:38:54 +0200
parent 13187:fe1229919070
child 13228:616c578c644f
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua	Mon Jul 17 00:37:44 2023 +0200
+++ b/plugins/mod_storage_internal.lua	Mon Jul 17 01:38:54 2023 +0200
@@ -11,7 +11,7 @@
 
 local host = module.host;
 
-local archive_item_limit = module:get_option_number("storage_archive_item_limit", 10000);
+local archive_item_limit = module:get_option_integer("storage_archive_item_limit", 10000, 0);
 local archive_item_count_cache = cache.new(module:get_option("storage_archive_item_limit_cache_size", 1000));
 
 local use_shift = module:get_option_boolean("storage_archive_experimental_fast_delete", false);