]> git.stg.codes - stg.git/commitdiff
Fix TariffChange sensor
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Dec 2011 10:04:09 +0000 (12:04 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Dec 2011 10:04:09 +0000 (12:04 +0200)
projects/stargazer/plugins/other/smux/sensors.h

index f751c82ebb689b59b75b2534b90ec7f93c109700..3337323e952803f5221c419da84c4f08aef1322e 100644 (file)
@@ -160,7 +160,7 @@ class TariffChangeUsersSensor : public UsersSensor {
 
     private:
         bool UserPredicate(USER_PTR userPtr) const
-        { return userPtr->GetProperty().nextTariff.ConstData().empty(); }
+        { return !userPtr->GetProperty().nextTariff.ConstData().empty(); }
 };
 
 class TotalTariffsSensor : public Sensor {