aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/config.cpp')
-rw-r--r--src/zenserver/config.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp
index 64acdfe73..6daf7fe1c 100644
--- a/src/zenserver/config.cpp
+++ b/src/zenserver/config.cpp
@@ -920,6 +920,9 @@ ParseConfigFile(const std::filesystem::path& Path,
LuaOptions.AddOption("gc.lowdiskspacethreshold"sv,
ServerOptions.GcConfig.MinimumFreeDiskSpaceToAllowWrites,
"gc-low-diskspace-threshold"sv);
+ LuaOptions.AddOption("gc.lightweightntervalseconds"sv,
+ ServerOptions.GcConfig.LightweightIntervalSeconds,
+ "gc-lightweight-interval-seconds"sv);
////// gc
LuaOptions.AddOption("gc.cache.maxdurationseconds"sv, ServerOptions.GcConfig.Cache.MaxDurationSeconds, "gc-cache-duration-seconds"sv);
@@ -1358,6 +1361,13 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
options.add_option("gc",
"",
+ "gc-lightweight-interval-seconds",
+ "Lightweight garbage collection interval in seconds. Default set to 900 (30 min).",
+ cxxopts::value<int32_t>(ServerOptions.GcConfig.LightweightIntervalSeconds)->default_value("900"),
+ "");
+
+ options.add_option("gc",
+ "",
"gc-cache-duration-seconds",
"Max duration in seconds before Z$ entries get evicted. Default set to 1209600 (2 weeks)",
cxxopts::value<int32_t>(ServerOptions.GcConfig.Cache.MaxDurationSeconds)->default_value("1209600"),