diff options
author | 2021-03-02 11:45:37 +0100 | |
---|---|---|
committer | 2021-03-03 12:37:18 +0000 | |
commit | 4e16c7100cc7f8dddca051ff393460d7a1a77c98 (patch) | |
tree | dd8ab474f96025a0ec7f7f6fc7507a5663d9b6c6 /adapter/vppapiclient/stat_client.go | |
parent | 4459b648e9fb53c34abbf52a00e63ad384fb9ee2 (diff) |
Provide error counters per worker for statsclient
Instead of a single value, the ErrorCounter now contains
an array representing couter values per workers.
Change-Id: I2b869e5b228bcb3e155b1fef08a4cd00e7d2e16a
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'adapter/vppapiclient/stat_client.go')
-rw-r--r-- | adapter/vppapiclient/stat_client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/vppapiclient/stat_client.go b/adapter/vppapiclient/stat_client.go index bf19c45..a124f59 100644 --- a/adapter/vppapiclient/stat_client.go +++ b/adapter/vppapiclient/stat_client.go @@ -130,7 +130,7 @@ func (c *statClient) DumpStats(patterns ...string) (stats []adapter.StatEntry, e stat.Data = adapter.ScalarStat(C.govpp_stat_segment_data_get_scalar_value(&v)) case adapter.ErrorIndex: - stat.Data = adapter.ErrorStat(C.govpp_stat_segment_data_get_error_value(&v)) + stat.Data = adapter.ErrorStat([]adapter.Counter{adapter.Counter(C.govpp_stat_segment_data_get_error_value(&v))}) case adapter.SimpleCounterVector: length := int(C.govpp_stat_segment_vec_len(unsafe.Pointer(C.govpp_stat_segment_data_get_simple_counter(&v)))) |