From bfc59e6a8adb2f2809b107ac2f8924975acf1078 Mon Sep 17 00:00:00 2001 From: http Date: Wed, 31 May 2017 17:59:29 +0300 Subject: [PATCH 1/2] =?UTF-8?q?FIXBUG:=20=D1=81=D1=82=D0=B0=D1=82=D1=83?= =?UTF-8?q?=D1=81=20online=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B0=D0=BB=D1=81=D1=8F=20=D0=BD=D0=B0=D0=BE=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=BE=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- statistics/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statistics/models.py b/statistics/models.py index 00ea0e3..4b32e15 100644 --- a/statistics/models.py +++ b/statistics/models.py @@ -101,7 +101,7 @@ class StatCache(models.Model): packets = models.PositiveIntegerField(default=0) def is_online(self): - return self.last_time < now() - timedelta(minutes=55) + return self.last_time > now() - timedelta(minutes=55) def is_today(self): return date.today() == self.last_time.date() From b1972c2f0bfdc4b4140c97c0b48f73df581f9c42 Mon Sep 17 00:00:00 2001 From: http Date: Wed, 31 May 2017 17:59:59 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=BD=D0=B5=20=D0=BD=D0=B0=D0=B4=D0=BE=20?= =?UTF-8?q?=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/netflow/djing_flow.conf | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 agent/netflow/djing_flow.conf diff --git a/agent/netflow/djing_flow.conf b/agent/netflow/djing_flow.conf deleted file mode 100644 index eccdbfa..0000000 --- a/agent/netflow/djing_flow.conf +++ /dev/null @@ -1,6 +0,0 @@ -# Config for djing flow - -version = "0.1"; - -# количество строк на запрос -mysql_rows_per_request = 65735;