Skip to content
Snippets Groups Projects
Verified Commit f6d080db authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: type in workerinfo json

parent 053fada7
No related branches found
No related tags found
No related merge requests found
...@@ -9,9 +9,10 @@ import ( ...@@ -9,9 +9,10 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/google/uuid"
"sync" "sync"
"time" "time"
"github.com/google/uuid"
) )
type WorkerStatus int type WorkerStatus int
...@@ -46,7 +47,7 @@ type Statistic struct { ...@@ -46,7 +47,7 @@ type Statistic struct {
JobsAssigned int `json:"jobsAssigned"` JobsAssigned int `json:"jobsAssigned"`
JobsCompleted int `json:"jobsCompleted"` JobsCompleted int `json:"jobsCompleted"`
FailedJobs int `json:"failedJobs"` FailedJobs int `json:"failedJobs"`
TotalExecutionTime time.Duration `json:"totalExecution_time"` TotalExecutionTime time.Duration `json:"totalExecutionTime"`
} }
func (s *Statistic) AverageExecutionTime() time.Duration { func (s *Statistic) AverageExecutionTime() time.Duration {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment