This commit is contained in:
2025-12-16 20:38:52 +01:00
parent c10dd8e0c5
commit b9ecab8c61

View File

@@ -36,12 +36,12 @@ func main() {
data, err := os.ReadFile(statsfile)
if err != nil {
log.Fatalf("Could not read watson stats file: %w", err)
log.Fatalf("Could not read watson stats file: %s", err)
}
var stats Stats
if err = json.Unmarshal(data, &stats); err != nil {
log.Fatalf("Could not unmarshal JSON: %w", err)
log.Fatalf("Could not unmarshal JSON: %s", err)
}
start := time.Unix(stats.Start, 0)