From d79c80af10968bbe3f132ad1348993ff90c1c164 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 5 Sep 2017 20:05:39 +0500 Subject: [PATCH] UI: Set max count of ip's per app to log. --- src/ui/qml/pages/ActivityPage.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/qml/pages/ActivityPage.qml b/src/ui/qml/pages/ActivityPage.qml index 6d22bb94..98f0c3b0 100644 --- a/src/ui/qml/pages/ActivityPage.qml +++ b/src/ui/qml/pages/ActivityPage.qml @@ -65,6 +65,9 @@ BasePage { var ipTextsArray = appPathIpArray[path]; if (!ipCount) { ipTextsArray.push(ipText); + } else if (ipTextsArray.length > 64) { + var oldIp = ipTextsArray.shift(); + delete ipTextsMap[oldIp]; } // Host name