mirror of
https://github.com/ajvpot/meshexplorer.git
synced 2026-08-12 11:32:43 +02: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">
|
<div className="mb-6">
|
||||||
<h2 className="text-lg font-semibold mb-2">Used Repeater Prefixes</h2>
|
<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">
|
<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>
|
</p>
|
||||||
<table className="w-full text-sm border">
|
<table className="w-full text-sm border">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export async function GET(req: Request) {
|
|||||||
groupArray(node_name) as node_names
|
groupArray(node_name) as node_names
|
||||||
FROM meshcore_adverts_latest
|
FROM meshcore_adverts_latest
|
||||||
WHERE is_repeater = 1
|
WHERE is_repeater = 1
|
||||||
AND last_seen >= now() - INTERVAL 7 DAY
|
AND last_seen >= now() - INTERVAL 2 DAY
|
||||||
${regionWhereClause}
|
${regionWhereClause}
|
||||||
GROUP BY prefix
|
GROUP BY prefix
|
||||||
ORDER BY node_count DESC, prefix ASC
|
ORDER BY node_count DESC, prefix ASC
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ export default function PathVisualization({
|
|||||||
exact: false,
|
exact: false,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
is_repeater: true, // Filter for repeaters only
|
is_repeater: true, // Filter for repeaters only
|
||||||
lastSeen: config?.lastSeen,
|
lastSeen: 60*60*24*2, // 2 days
|
||||||
region: config?.selectedRegion,
|
region: config?.selectedRegion,
|
||||||
enabled: showGraph && prefix.length > 0
|
enabled: showGraph && prefix.length > 0
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user