Skip to content

Commit

Permalink
Merge pull request #576 from aaknitt/patch-3
Browse files Browse the repository at this point in the history
Increase timeout for removing stale talkgroup patches
  • Loading branch information
robotastic authored Dec 14, 2021
2 parents 7927006 + 7f5a804 commit 88abe15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk-recorder/systems/system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,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 @@ -528,4 +528,4 @@ void System::clear_stale_talkgroup_patches(){
}
BOOST_LOG_TRIVIAL(debug) << "Active Patch of TGIDs" << printstring;
}
}
}

0 comments on commit 88abe15

Please sign in to comment.