int shift = std::chrono::duration_cast<std::chrono::seconds>(current_edge - leading_edge_).count();
- if (shift < 0){
- // we do not update any events if they happened in the past
- // by more than unit of window .. (1 second currently)
- return false;
- }
// Advance window if shift >= 1
if (shift >= 1){
bool sliding_window::resize_window(unsigned int window_size){
if (window_size < MIN_WINDOW_SIZE || window_size > MAX_WINDOW_SIZE){
std::stringstream ss;
- ss << "Error ::" << __FILE__ << ","<< __LINE__ << " window size must be in [ " << MIN_WINDOW_SIZE << "," << MAX_WINDOW_SIZE << "]" << std::endl;
+ ss << "Error ::" << __FILE__ << ","<< __LINE__ << " Illegal window size ! window size must be in [ " << MIN_WINDOW_SIZE << "," << MAX_WINDOW_SIZE << "]" << std::endl;
error_string = ss.str();
return false;
}