Commit 3aa80943 authored by Thomas Edwards's avatar Thomas Edwards
Browse files

Removed debug statements and intentional memory leak

parent 79763b83
...@@ -367,17 +367,17 @@ int Filter_Obs::lowpass_PLASMON_1Hz(buffer_obs* buffer_in, ...@@ -367,17 +367,17 @@ int Filter_Obs::lowpass_PLASMON_1Hz(buffer_obs* buffer_in,
// -------------------------------------------------------------- // --------------------------------------------------------------
// Degbugging monitoring info // Degbugging monitoring info
// -------------------------------------------------------------- // --------------------------------------------------------------
std::cerr << "-----------------------------------" << std::endl; // std::cerr << "-----------------------------------" << std::endl;
// timestamp=tofilter1.back()->get_time("%Y-%m-%d %H:%M:%S",true); // timestamp=tofilter1.back()->get_time("%Y-%m-%d %H:%M:%S",true);
// Determine number of blocks // Determine number of blocks
float num_blocks = (elapsed_time_last_block/(1e9/16.)); float num_blocks = (elapsed_time_last_block/(1e9/16.));
total_blocks += num_blocks; total_blocks += num_blocks;
// Debug printing // // Debug printing
std::cerr << "Total blocks: " << total_blocks << std::endl; // std::cerr << "Total blocks: " << total_blocks << std::endl;
std::cerr << "Data in que: " << tofilter1.size() << std::endl; // std::cerr << "Data in que: " << tofilter1.size() << std::endl;
std::cerr << "Blocks*8: " << round(8*(total_blocks)) << std::endl; // std::cerr << "Blocks*8: " << round(8*(total_blocks)) << std::endl;
// -------------------------------------------------------------- // --------------------------------------------------------------
// Given the elapsed time, can we run some number of filters to // Given the elapsed time, can we run some number of filters to
...@@ -442,11 +442,11 @@ int Filter_Obs::lowpass_PLASMON_1Hz(buffer_obs* buffer_in, ...@@ -442,11 +442,11 @@ int Filter_Obs::lowpass_PLASMON_1Hz(buffer_obs* buffer_in,
// fix total blocks // fix total blocks
total_blocks = total_blocks*((1.-(points_to_drop / float(tofilter1.size())))); total_blocks = total_blocks*((1.-(points_to_drop / float(tofilter1.size()))));
// // Drop the oldest data points, as determined by the oldest block // Drop the oldest data points, as determined by the oldest block
// for (int ix = 0; ix < points_to_drop; ix++) { for (int ix = 0; ix < points_to_drop; ix++) {
// delete(tofilter1[ix]); delete(tofilter1[ix]);
// } }
// tofilter1.erase(tofilter1.begin(), tofilter1.begin() + points_to_drop); tofilter1.erase(tofilter1.begin(), tofilter1.begin() + points_to_drop);
// // Debug printing // // Debug printing
// std::cerr << "Total blocks (post filter): " << total_blocks << std::endl; // std::cerr << "Total blocks (post filter): " << total_blocks << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment