settings: restrict value of visualizer_sync_interval to be >= 10

This commit is contained in:
Andrzej Rybczak
2015-08-13 11:26:33 +02:00
parent 46960aaaea
commit b91bcc291f
2 changed files with 2 additions and 0 deletions

View File

@@ -253,6 +253,7 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
}));
p.add("visualizer_sync_interval", assign_default<unsigned>(
visualizer_sync_interval, 30, [](unsigned v) {
lowerBoundCheck(v, 10u);
return boost::posix_time::seconds(v);
}));
p.add("visualizer_type", assign_default(