diff options
| author | Per Larsson <[email protected]> | 2021-12-10 07:35:28 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-12-10 07:35:28 +0100 |
| commit | 680d0a3b3c8e76762a0e8b19a94fd854429b91a6 (patch) | |
| tree | 483fa84d88086baeeec0bfb3782cfea7c3e1c3dd /zenserver | |
| parent | Ignore clangd cache directory. (diff) | |
| download | zen-680d0a3b3c8e76762a0e8b19a94fd854429b91a6.tar.xz zen-680d0a3b3c8e76762a0e8b19a94fd854429b91a6.zip | |
Set GC default enabled and interval set to zero (off).
Diffstat (limited to 'zenserver')
| -rw-r--r-- | zenserver/config.cpp | 6 | ||||
| -rw-r--r-- | zenserver/config.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp index 3aef3f499..e57a97c8b 100644 --- a/zenserver/config.cpp +++ b/zenserver/config.cpp @@ -307,7 +307,7 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) "", "gc-enabled", "Whether garbage collection is enabled or not.", - cxxopts::value<bool>(ServerOptions.GcConfig.Enabled)->default_value("false"), + cxxopts::value<bool>(ServerOptions.GcConfig.Enabled)->default_value("true"), ""); options.add_option("gc", @@ -320,8 +320,8 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) options.add_option("gc", "", "gc-interval-seconds", - "Garbage collection interval. Default is 1h.", - cxxopts::value<int32_t>(ServerOptions.GcConfig.IntervalSeconds)->default_value("3600"), + "Garbage collection interval in seconds. Default set to 0 (Off).", + cxxopts::value<int32_t>(ServerOptions.GcConfig.IntervalSeconds)->default_value("0"), ""); options.add_option("gc", diff --git a/zenserver/config.h b/zenserver/config.h index 086f761fc..bc8768961 100644 --- a/zenserver/config.h +++ b/zenserver/config.h @@ -75,9 +75,9 @@ struct ZenGcConfig { ZenCasEvictionPolicy Cas; ZenCacheEvictionPolicy Cache; - int32_t IntervalSeconds = 60 * 60; + int32_t IntervalSeconds = 0; bool CollectSmallObjects = false; - bool Enabled = false; + bool Enabled = true; }; struct ZenServerOptions |