From df1b888a2bfadefadc7dbfce59d34f811ff002ec Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Thu, 11 Apr 2019 10:59:49 +0200 Subject: Add support for names vector and fill name in interface/node stats Change-Id: I3a6bcb635701c0f00e47d04fce2113e1ac23b67b Signed-off-by: Ondrej Fabry --- examples/stats-api/stats_api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/stats-api/stats_api.go b/examples/stats-api/stats_api.go index b905f60..9808243 100644 --- a/examples/stats-api/stats_api.go +++ b/examples/stats-api/stats_api.go @@ -170,6 +170,7 @@ func isZero(stat adapter.Stat) bool { } } } + return true case adapter.CombinedCounterStat: for _, ss := range s { for _, sss := range ss { @@ -178,6 +179,7 @@ func isZero(stat adapter.Stat) bool { } } } + return true } - return true + return false } -- cgit 1.2.3-korg