Retab
Some checks failed
Run tests / test (1.25) (push) Waiting to run
Run tests / build (push) Has been cancelled
Run tests / test (stable) (push) Has been cancelled

This commit is contained in:
2026-02-23 09:09:10 +01:00
parent f50f3d1d69
commit 043247018f
3 changed files with 13 additions and 11 deletions

6
sql.go
View File

@@ -184,7 +184,7 @@ const (
received_at DESC;
`
sqlSelectMeshCorePacketsByRepeaterWindowed = `
SELECT
SELECT
to_timestamp(round(EXTRACT(EPOCH FROM received_at) / $1) * $1) as window,
cast(to_hex(get_byte(path, length(path)-2)) as text) AS repeater,
count(id) AS packets
@@ -193,8 +193,8 @@ const (
WHERE
length(path) >= 2 AND
received_at >= $2
GROUP BY
round(EXTRACT(EPOCH FROM received_at) / $1),
GROUP BY
round(EXTRACT(EPOCH FROM received_at) / $1),
cast(to_hex(get_byte(path, length(path)-2)) as text);
`
sqlSelectMeshCorePacketPathNodes = `