diff options
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 |