X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/98c3cc4050c9a41296b3be2a7336cee0edbe6bc0..f5ea2a9375e9fb6fc8dc0720395e761ddd3c11c0:/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 {