From cdb5d1a8c6170c78fba18ee43311a70a65af4c66 Mon Sep 17 00:00:00 2001
From: Maxim Mamontov <faust.madf@gmail.com>
Date: Sun, 25 Dec 2011 12:04:09 +0200
Subject: [PATCH] Fix TariffChange sensor

---
 projects/stargazer/plugins/other/smux/sensors.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 {
-- 
2.44.2