diff --git a/src/lib/utilities/ActiveTimer.ts b/src/lib/utilities/ActiveTimer.ts index 2035d0d4..1fbd21ce 100644 --- a/src/lib/utilities/ActiveTimer.ts +++ b/src/lib/utilities/ActiveTimer.ts @@ -30,15 +30,7 @@ export function createActiveTimer(lastUpdated: Date | null | undefined, interval const timeDiffMs = now.getTime() - new Date(date).getTime(); const intervalMs = interval * 60 * 1000; - // Add a maximum threshold for device activity (35 minutes) regardless of interval - const MAX_ACTIVE_TIME_MS = 36 * 60 * 1000; // 35 minutes in milliseconds - - // If time difference exceeds our maximum threshold, device is inactive - if (timeDiffMs > MAX_ACTIVE_TIME_MS) { - return false; - } - - // Device is active if time difference is less than the configured interval + // Device is active if time difference is less than the configured interval (no hard cap) return timeDiffMs < intervalMs; } diff --git a/src/routes/app/dashboard/location/[location_id]/devices/[devEui]/+page.svelte b/src/routes/app/dashboard/location/[location_id]/devices/[devEui]/+page.svelte index 22de9bd1..986228ce 100644 --- a/src/routes/app/dashboard/location/[location_id]/devices/[devEui]/+page.svelte +++ b/src/routes/app/dashboard/location/[location_id]/devices/[devEui]/+page.svelte @@ -114,8 +114,8 @@ device.upload_interval || device.cw_device_type?.default_upload_interval || 10 ); const STALE_THRESHOLD_MS = $derived( - // Mark stale if no update in 2 * expected interval (cap between 2min and 30min) - Math.min(30, Math.max(2, EXPECTED_UPLOAD_MINUTES * 2)) * 60 * 1000 + // Previously capped at 30 min and multiplied by 2. Now strictly use configured interval (in minutes) with no hard cap. + EXPECTED_UPLOAD_MINUTES * 60 * 1000 ); // Active status timer for THIS device (independent of dashboard list) diff --git a/static/build-info.json b/static/build-info.json index deacef05..252973fb 100644 --- a/static/build-info.json +++ b/static/build-info.json @@ -1,9 +1,9 @@ { - "commit": "2f4daa7", - "branch": "workingDateTime", + "commit": "285c3cd", + "branch": "develop", "author": "Kevin Cantrell", - "date": "2025-08-19T17:11:48.136Z", + "date": "2025-08-24T02:09:26.294Z", "builder": "kevin@kevin-desktop", "ipAddress": "192.168.1.100", - "timestamp": 1755623508137 + "timestamp": 1756001366295 } diff --git a/build-info.txt b/static/build-info.txt similarity index 100% rename from build-info.txt rename to static/build-info.txt