Code Review
/
ric-app
/
admin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added more information in documenation and spell-check
[ric-app/admin.git]
/
src
/
protector-plugin
/
sliding_window.cc
diff --git
a/src/protector-plugin/sliding_window.cc
b/src/protector-plugin/sliding_window.cc
index
71eefe8
..
bdcf736
100644
(file)
--- 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<std::chrono::seconds>(current_edge - leading_edge_).count();
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){
// Advance window if shift >= 1
if (shift >= 1){