Skip to content

Commit

Permalink
Merge pull request #183 from robbietu/master
Browse files Browse the repository at this point in the history
change bandwidth-restrict check
  • Loading branch information
robbietu authored Sep 23, 2024
2 parents 723fd99 + e07edac commit aa24759
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif ()
# set PKTMINERG_MAJOR_VERSION, PKTMINERG_MINOR_VERSION, etc.
set(PKTMINERG_MAJOR_VERSION "0")
set(PKTMINERG_MINOR_VERSION "8")
set(PKTMINERG_PATCH_VERSION "1")
set(PKTMINERG_PATCH_VERSION "2")
set(PKTMINERG_VERSION_STRING "${PKTMINERG_MAJOR_VERSION}.${PKTMINERG_MINOR_VERSION}.${PKTMINERG_PATCH_VERSION}")

if (WIN32)
Expand Down
2 changes: 1 addition & 1 deletion src/daemonManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ DaemonManager::DaemonManager(const boost::program_options::variables_map &vm, ti
}
}

daemon_.setClientVersion("0.8.0");
daemon_.setClientVersion("0.8.2");
std::vector<std::string> strs;
split(strs, SUPPORT_API_VERSIONS, boost::algorithm::is_any_of(","));
for (const auto& str:strs) {
Expand Down
6 changes: 3 additions & 3 deletions src/pcapexport.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class PcapExportBase {

delta_us = (uint64_t)(_send_bytes / _Bpus);
tick_us = _first_send_us + delta_us;
if(us < tick_us)// && (tick_us - us) > 1000) //traffic jitter
if((us < tick_us)&&(tick_us - us) > 100000) //traffic jitter
return -1;
tick_us = _first_send_us + delta_us + __TRAFFIC_GAP_US; //traffic gap
if(us > tick_us)
Expand All @@ -196,7 +196,7 @@ class PcapExportBase {

delta_us = (uint64_t)(_send_bytes / _Bpus);
tick_us = _first_send_us + delta_us;
if(us < tick_us)// && (tick_us - us) > 1000) //traffic jitter
if((us < tick_us)&&(tick_us - us) > 100000)
return -1;
tick_us = _first_send_us + delta_us + __TRAFFIC_GAP_US; //traffic gap
if(us > tick_us)
Expand Down Expand Up @@ -225,7 +225,7 @@ class PcapExportBase {

delta_us = (uint64_t)(_send_bytes / _Bpus);
tick_us = _first_send_us + delta_us;
if(us < tick_us)// && (tick_us - us) > 1000) //traffic jitter
if((us < tick_us)&&(tick_us - us) > 100000) //traffic jitter
return -1;
tick_us = _first_send_us + delta_us + __TRAFFIC_GAP_US; //traffic gap
if(us > tick_us)
Expand Down

0 comments on commit aa24759

Please sign in to comment.