diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-09-10 12:03:24 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-09-10 12:03:24 +0200 |
commit | 90e9f058450cfb8bc2f06b02c60ba8cb533c2738 (patch) | |
tree | c7d74e890c59ee258d018cf78441a896e24ffb1e /src/ManagementServer.cpp | |
parent | 1b6ce454b7538e5847c30c39c8d4acdbdec810f4 (diff) | |
download | dabmux-90e9f058450cfb8bc2f06b02c60ba8cb533c2738.tar.gz dabmux-90e9f058450cfb8bc2f06b02c60ba8cb533c2738.tar.bz2 dabmux-90e9f058450cfb8bc2f06b02c60ba8cb533c2738.zip |
Remove some old _WIN32 ifdefs, restructure includes
Diffstat (limited to 'src/ManagementServer.cpp')
-rw-r--r-- | src/ManagementServer.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ManagementServer.cpp b/src/ManagementServer.cpp index dff093a..2c25a7a 100644 --- a/src/ManagementServer.cpp +++ b/src/ManagementServer.cpp @@ -95,11 +95,6 @@ INPUT_COUNTER_RESET_TIME = std::chrono::minutes(30); static constexpr int INPUT_UNSTABLE_THRESHOLD = 3; -/* For how long the input buffers must be empty before we move an input to the - * NoData state. */ -static constexpr auto -INPUT_NODATA_TIMEOUT = std::chrono::seconds(30); - /* Keep 30s of min/max buffer fill information so that we can catch meaningful * values even if we have a slow poller */ static constexpr auto @@ -643,11 +638,7 @@ input_state_t InputStat::determineState() // STATE CALCULATION - /* If the buffer has been empty for more than - * INPUT_NODATA_TIMEOUT, we go to the NoData state. - * - * Consider an empty deque to be NoData too. - */ + /* Consider an empty deque to be NoData. */ if (std::all_of( m_buffer_fill_stats.begin(), m_buffer_fill_stats.end(), [](const fill_stat_t& fs) { return fs.bufsize == 0; }) ) { |