diff --git a/src/bridge.cpp b/src/bridge.cpp index f5ea22a..a13d7af 100644 --- a/src/bridge.cpp +++ b/src/bridge.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -210,7 +211,7 @@ bool Bridge::onEvent(const Message::Events::MessageConstruct& e) { } if (e.e.all_of()) { - int64_t time_diff = int64_t(Message::getTimeMS()) - int64_t(e.e.get().ts); + int64_t time_diff = int64_t(getTimeMS()) - int64_t(e.e.get().ts); if (time_diff > 5*1000*60) { return false; // message too old }