update stats and path viz to use 2 day last seen time

This commit is contained in:
ajvpot
2025-09-14 18:26:47 +02:00
parent e41dfe83d3
commit 7addbb3165
3 changed files with 3 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ export default function StatsPage() {
<div className="mb-6">
<h2 className="text-lg font-semibold mb-2">Used Repeater Prefixes</h2>
<p className="text-sm text-gray-600 dark:text-gray-400 mb-3">
Shows repeater nodes grouped by the first byte of their public key, seen within the last 7 days.
Shows repeater nodes grouped by the first byte of their public key, seen within the last 2 days.
</p>
<table className="w-full text-sm border">
<thead>

View File

@@ -17,7 +17,7 @@ export async function GET(req: Request) {
groupArray(node_name) as node_names
FROM meshcore_adverts_latest
WHERE is_repeater = 1
AND last_seen >= now() - INTERVAL 7 DAY
AND last_seen >= now() - INTERVAL 2 DAY
${regionWhereClause}
GROUP BY prefix
ORDER BY node_count DESC, prefix ASC

View File

@@ -132,7 +132,7 @@ export default function PathVisualization({
exact: false,
limit: 20,
is_repeater: true, // Filter for repeaters only
lastSeen: config?.lastSeen,
lastSeen: 60*60*24*2, // 2 days
region: config?.selectedRegion,
enabled: showGraph && prefix.length > 0
}))