From 3a8d92e39b1de13e65cde4289e591e6c19fc1cc1 Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 01:06:46 +0000 Subject: [PATCH] Replace packet count limit with time window selector - Add time window dropdown (15min default, up to 24h or All) - Use 'since' param instead of fixed limit=10000 - Persist selection to localStorage - Keep limit=50000 as safety net --- public/index.html | 2 +- public/packets.js | 30 +++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 456fb25..df9ea11 100644 --- a/public/index.html +++ b/public/index.html @@ -84,7 +84,7 @@ - + diff --git a/public/packets.js b/public/packets.js index 0bf3c8a..b98ee1d 100644 --- a/public/packets.js +++ b/public/packets.js @@ -345,7 +345,12 @@ async function loadPackets() { try { const params = new URLSearchParams(); - params.set('limit', '10000'); + const windowMin = Number(document.getElementById('fTimeWindow')?.value || 15); + if (windowMin > 0) { + const since = new Date(Date.now() - windowMin * 60000).toISOString(); + params.set('since', since); + } + params.set('limit', '50000'); const regionParam = RegionFilter.getRegionParam(); if (regionParam) params.set('region', regionParam); if (filters.hash) params.set('hash', filters.hash); @@ -451,6 +456,19 @@ +
+ + +