aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-01 10:23:43 +0200
committerDan Engelbrecht <[email protected]>2022-06-01 10:23:43 +0200
commitf8d110ad0ebf43bbae18db5bef5c38f3c37f5234 (patch)
treeac681345d584682f8a7e63526bb6c6c03b4c8c2d /zenserver/zenserver.cpp
parentMerge pull request #115 from EpicGames/de/block-gc-of-current-write-block (diff)
downloadzen-f8d110ad0ebf43bbae18db5bef5c38f3c37f5234.tar.xz
zen-f8d110ad0ebf43bbae18db5bef5c38f3c37f5234.zip
Make it possible to configure GC monitoring interval
command line: --gc-monitor-interval-seconds lua: monitorintervalseconds
Diffstat (limited to 'zenserver/zenserver.cpp')
-rw-r--r--zenserver/zenserver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp
index a924d9c81..4db69c265 100644
--- a/zenserver/zenserver.cpp
+++ b/zenserver/zenserver.cpp
@@ -364,6 +364,7 @@ public:
ZEN_INFO("initializing GC, enabled '{}', interval {}s", ServerOptions.GcConfig.Enabled, ServerOptions.GcConfig.IntervalSeconds);
zen::GcSchedulerConfig GcConfig{
.RootDirectory = m_DataRoot / "gc",
+ .MonitorInterval = std::chrono::seconds(ServerOptions.GcConfig.MonitorIntervalSeconds),
.Interval = std::chrono::seconds(ServerOptions.GcConfig.IntervalSeconds),
.MaxCacheDuration = std::chrono::seconds(ServerOptions.GcConfig.Cache.MaxDurationSeconds),
.CollectSmallObjects = ServerOptions.GcConfig.CollectSmallObjects,