diff options
author | 2015-09-03 05:16:12 +0300 | |
---|---|---|
committer | 2015-09-03 05:16:12 +0300 | |
commit | 1912c95b5480cd601581a00645bb2e75e9c6e7a3 (patch) | |
tree | 3ddf98b540677f296f9da7daf9c1e14d0970cc05 /src/rx_check.cpp | |
parent | 6669a4dd3176e21ef8e99fc4a90ecd7a42566be9 (diff) | |
parent | 463cb7c212e927a732fb5b702a288a06550c5eb8 (diff) |
Merge branch 'master' into rpc
Diffstat (limited to 'src/rx_check.cpp')
-rwxr-xr-x | src/rx_check.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/rx_check.cpp b/src/rx_check.cpp index 67ce89e1..3a67ca23 100755 --- a/src/rx_check.cpp +++ b/src/rx_check.cpp @@ -243,6 +243,11 @@ bool RxCheckManager::Create(){ m_hist.Create(); m_cur_time=0.00000001; m_on_drain=false; + + int i; + for (i=0; i<MAX_TEMPLATES_STATS;i++ ) { + m_template_info[i].reset(); + } return (true); } @@ -277,11 +282,6 @@ void RxCheckManager::handle_packet(CRx_check_header * rxh){ lf=m_ft.lookup(rxh->m_flow_id); m_stats.m_lookup++; - if ((m_stats.m_lookup & 0xff)==0) { - /* handle aging from time to time */ - - tw_handle() ; - } bool any_err=false; if ( rxh->is_fif_dir() ) { @@ -393,6 +393,10 @@ void RxCheckManager::handle_packet(CRx_check_header * rxh){ on_flow_end(lf); } + if ((m_stats.m_lookup & 0xff)==0) { + /* handle aging from time to time */ + tw_handle() ; + } } void RxCheckManager::update_template_err(uint8_t template_id){ |