Retab
This commit is contained in:
6
sql.go
6
sql.go
@@ -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 = `
|
||||
|
||||
Reference in New Issue
Block a user