From a47c523f3bd07e1aff7b8b462b2467c40455f47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20=C5=9Apiewak?= Date: Tue, 3 Dec 2024 14:47:08 +0100 Subject: [PATCH] Reduce number of buckets for open tabs --- DuckDuckGo/TabSwitcherOpenDailyPixel.swift | 7 +------ DuckDuckGoTests/TabSwitcherOpenDailyPixelTests.swift | 8 ++------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/DuckDuckGo/TabSwitcherOpenDailyPixel.swift b/DuckDuckGo/TabSwitcherOpenDailyPixel.swift index c46735c497..b3dab0a802 100644 --- a/DuckDuckGo/TabSwitcherOpenDailyPixel.swift +++ b/DuckDuckGo/TabSwitcherOpenDailyPixel.swift @@ -49,12 +49,7 @@ struct TabSwitcherOpenDailyPixel { case 21...40: return "21-40" case 41...60: return "41-60" case 61...80: return "61-80" - case 81...100: return "81-100" - case 101...125: return "101-125" - case 126...150: return "126-150" - case 151...250: return "151-250" - case 251...500: return "251-500" - default: return "501+" + default: return "81+" } } diff --git a/DuckDuckGoTests/TabSwitcherOpenDailyPixelTests.swift b/DuckDuckGoTests/TabSwitcherOpenDailyPixelTests.swift index 9d5d9c984c..4b8aae8e9a 100644 --- a/DuckDuckGoTests/TabSwitcherOpenDailyPixelTests.swift +++ b/DuckDuckGoTests/TabSwitcherOpenDailyPixelTests.swift @@ -51,12 +51,8 @@ final class TabSwitcherOpenDailyPixelTests: XCTestCase { 21...40: "21-40", 41...60: "41-60", 61...80: "61-80", - 81...100: "81-100", - 101...125: "101-125", - 126...150: "126-150", - 151...250: "151-250", - 251...500: "251-500", - 501...504: "501+"] + 81...90: "81+", + 501...504: "81+"] for bucket in bucketValues { for value in bucket.key {