aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-01 11:03:05 +0200
committerGitHub <[email protected]>2022-06-01 11:03:05 +0200
commitbb7491d3a991d89c4b97c2cb5ce1142709a8da0e (patch)
tree428d0f3e3d25a78305e97542a945cd7f9f4bd6ad /zenserver/zenserver.cpp
parentMerge pull request #115 from EpicGames/de/block-gc-of-current-write-block (diff)
parentoption description (diff)
downloadzen-bb7491d3a991d89c4b97c2cb5ce1142709a8da0e.tar.xz
zen-bb7491d3a991d89c4b97c2cb5ce1142709a8da0e.zip
Merge pull request #117 from EpicGames/de/configurable-gc-monitor-intervall
Make it possible to configure GC monitoring interval
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,