update to json/v2 - pocketbase collection errors :(

This commit is contained in:
henrygd
2025-08-20 20:13:01 -04:00
parent 7ba1f366ba
commit 47360c5bf1
15 changed files with 92 additions and 90 deletions

View File

@@ -4,7 +4,7 @@ import (
"beszel/internal/entities/system"
"bufio"
"bytes"
"encoding/json"
"encoding/json/v2"
"fmt"
"os/exec"
"regexp"
@@ -50,7 +50,7 @@ type GPUManager struct {
// RocmSmiJson represents the JSON structure of rocm-smi output
type RocmSmiJson struct {
ID string `json:"GUID"`
Name string `json:"Card series"`
Name string `json:"Card Series"`
Temperature string `json:"Temperature (Sensor edge) (C)"`
MemoryUsed string `json:"VRAM Total Used Memory (B)"`
MemoryTotal string `json:"VRAM Total Memory (B)"`