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

View File

@@ -42,11 +42,13 @@ jobs:
run: go build -o build/ -v ./cmd/hamview-receiver
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Show env
run: env
- name: Log into Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.DEPLOY_USER }}
registry: ${{ vars.REGISTRY }}
username: ${{ vars.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_TOKEN }}
- name: Build and push collector container
uses: docker/build-push-action@v6

View File

@@ -335,18 +335,18 @@ func (c *Collector) processMeshCorePacket(packet *protocol.Packet) {
last_advert_id
) VALUES (
$1,
$2,
$3,
$4,
$5,
$2,
$3,
$4,
$5,
$6,
$7,
$8,
$9
)
)
ON CONFLICT (public_key)
DO UPDATE
SET
SET
name = $3,
local_time = $4,
last_heard = $6,

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 = `