diff options
Diffstat (limited to 'core/stats.go')
-rw-r--r-- | core/stats.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/stats.go b/core/stats.go index 55c287e..3218f1e 100644 --- a/core/stats.go +++ b/core/stats.go @@ -305,7 +305,11 @@ func (c *StatsConnection) GetErrorStats(errorStats *api.ErrorStats) (err error) continue } if errStat, ok := stat.Data.(adapter.ErrorStat); ok { - errorStats.Errors[i].Value = uint64(errStat) + values := make([]uint64, len(errStat)) + for j, errStatW := range errStat { + values[j] = uint64(errStatW) + } + errorStats.Errors[i].Values = values } } |