From f6d080dbc03f70193cfc5a33506538398a503001 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Thu, 12 Dec 2024 18:27:30 +0100 Subject: [PATCH] fix: type in workerinfo json --- worker.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worker.go b/worker.go index 65bf564..5dcb8be 100644 --- a/worker.go +++ b/worker.go @@ -9,9 +9,10 @@ import ( "context" "errors" "fmt" - "github.com/google/uuid" "sync" "time" + + "github.com/google/uuid" ) type WorkerStatus int @@ -46,7 +47,7 @@ type Statistic struct { JobsAssigned int `json:"jobsAssigned"` JobsCompleted int `json:"jobsCompleted"` FailedJobs int `json:"failedJobs"` - TotalExecutionTime time.Duration `json:"totalExecution_time"` + TotalExecutionTime time.Duration `json:"totalExecutionTime"` } func (s *Statistic) AverageExecutionTime() time.Duration { -- GitLab