From: Maxim Mamontov <faust.madf@gmail.com>
Date: Sun, 25 Dec 2011 10:04:09 +0000 (+0200)
Subject: Fix TariffChange sensor
X-Git-Tag: 2.408~31
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/cdb5d1a8c6170c78fba18ee43311a70a65af4c66?ds=inline;hp=8a02f262b81cd7421a0083a4faaac02aa8d9b019

Fix TariffChange sensor
---

diff --git a/projects/stargazer/plugins/other/smux/sensors.h b/projects/stargazer/plugins/other/smux/sensors.h
index f751c82e..3337323e 100644
--- a/projects/stargazer/plugins/other/smux/sensors.h
+++ b/projects/stargazer/plugins/other/smux/sensors.h
@@ -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 {