Toggle the fifo output once if synchronization is disabled

This commit is contained in:
Andrzej Rybczak
2020-12-13 17:12:41 +01:00
parent ecdc77b960
commit 2f07252ed9
2 changed files with 10 additions and 11 deletions

View File

@@ -282,8 +282,9 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
p.add("visualizer_sync_interval", &visualizer_sync_interval, "0",
[](std::string v) {
unsigned sync_interval = verbose_lexical_cast<unsigned>(v);
if (sync_interval > 0)
lowerBoundCheck<unsigned>(sync_interval, 10);
if (sync_interval == 0)
sync_interval = std::numeric_limits<unsigned>::max();
lowerBoundCheck<unsigned>(sync_interval, 10);
return boost::posix_time::seconds(sync_interval);
});
p.add("visualizer_type", &visualizer_type, "wave");