X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/98c3cc4050c9a41296b3be2a7336cee0edbe6bc0..9421e4b0be3a6a59e93ad092e3904b3ff8092e84:/projects/stargazer/plugins/other/smux/sensors.h diff --git a/projects/stargazer/plugins/other/smux/sensors.h b/projects/stargazer/plugins/other/smux/sensors.h index f751c82e..3787611f 100644 --- a/projects/stargazer/plugins/other/smux/sensors.h +++ b/projects/stargazer/plugins/other/smux/sensors.h @@ -160,7 +160,16 @@ class TariffChangeUsersSensor : public UsersSensor { private: bool UserPredicate(USER_PTR userPtr) const - { return userPtr->GetProperty().nextTariff.ConstData().empty(); } + { return !userPtr->GetProperty().nextTariff.ConstData().empty(); } +}; + +class ActiveUsersSensor : public UsersSensor { + public: + ActiveUsersSensor(USERS & u) : UsersSensor(u) {} + virtual ~ActiveUsersSensor() {} + + private: + bool UserPredicate(USER_PTR userPtr) const; }; class TotalTariffsSensor : public Sensor {