mirror of
https://github.com/ajvpot/meshexplorer.git
synced 2026-03-28 17:42:58 +01:00
update stats and path viz to use 2 day last seen time
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user