diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c index 158237406c..4df623c84e 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -557,6 +557,13 @@ static void get_netdata_configured_variables() { error("Invalid dbengine disk space %d given. Defaulting to %d.", default_rrdeng_disk_quota_mb, RRDENG_MIN_DISK_SPACE_MB); default_rrdeng_disk_quota_mb = RRDENG_MIN_DISK_SPACE_MB; } + + default_multidb_disk_quota_mb = (int) config_get_number(CONFIG_SECTION_GLOBAL, "multidb disk space", compute_multidb_diskspace()); + if(default_multidb_disk_quota_mb < RRDENG_MIN_DISK_SPACE_MB) { + error("Invalid multidb disk space %d given. Defaulting to %d.", default_multidb_disk_quota_mb, RRDENG_MIN_DISK_SPACE_MB); + default_multidb_disk_quota_mb = RRDENG_MIN_DISK_SPACE_MB; + } + #endif // ------------------------------------------------------------------------ |