Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase timeout for removing stale talkgroup patches #576

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions trunk-recorder/systems/system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ void System::clear_stale_talkgroup_patches(){
std::vector<long> stale_talkgroups;
BOOST_FOREACH(auto& patch_element, patch.second){
//patch_element.first (map key) is TGID, patch.second (map value) is the timestamp
if (std::time(nullptr) - patch_element.second >= 3){ //3 second hard coded timeout for now
if (std::time(nullptr) - patch_element.second >= 10){ //10 second hard coded timeout for now
stale_talkgroups.push_back(patch_element.first); //add this tgid to the list that we'll delete from this patch since it's expired
}
}
Expand All @@ -525,4 +525,4 @@ void System::clear_stale_talkgroup_patches(){
}
BOOST_LOG_TRIVIAL(debug) << "Active Patch of TGIDs" << printstring;
}
}
}