aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index d8dbdb5d2..d8384abfb 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -279,7 +279,10 @@ glue_state_file_init(Error &error)
#endif
}
- state_file = new StateFile(std::move(path_fs),
+ unsigned interval = config_get_unsigned(CONF_STATE_FILE_INTERVAL,
+ StateFile::DEFAULT_INTERVAL);
+
+ state_file = new StateFile(std::move(path_fs), interval,
*instance->partition,
*instance->event_loop);
state_file->Read();