diff options
| author | Dan Engelbrecht <[email protected]> | 2022-06-01 10:23:43 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-06-01 10:23:43 +0200 |
| commit | f8d110ad0ebf43bbae18db5bef5c38f3c37f5234 (patch) | |
| tree | ac681345d584682f8a7e63526bb6c6c03b4c8c2d /zenserver/zenserver.cpp | |
| parent | Merge pull request #115 from EpicGames/de/block-gc-of-current-write-block (diff) | |
| download | zen-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.cpp | 1 |
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, |