X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fprotector-plugin%2Fsliding_window.cc;h=bdcf7368675b10619b89290c875a7eb6516034b9;hb=18fa108e9174caf6871fd310bc69ed2c841274d0;hp=71eefe8a897b058eda3b95ad21402ef9cd42d296;hpb=b9d7e9c232a4371ddfed51c58e5a57f87b057229;p=ric-app%2Fadmin.git diff --git a/src/protector-plugin/sliding_window.cc b/src/protector-plugin/sliding_window.cc index 71eefe8..bdcf736 100644 --- a/src/protector-plugin/sliding_window.cc +++ b/src/protector-plugin/sliding_window.cc @@ -52,11 +52,6 @@ bool sliding_window::update_window(unsigned int events){ int shift = std::chrono::duration_cast(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){