summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2019-04-11 10:59:49 +0200
committerOndrej Fabry <ofabry@cisco.com>2019-04-11 10:59:49 +0200
commitdf1b888a2bfadefadc7dbfce59d34f811ff002ec (patch)
tree054ac4d90c744b867255e8e88ac0c38bd46e8d64 /examples
parent3dc9b9885e3d7041a7c349185dc88f3bed50be6d (diff)
Add support for names vector and fill name in interface/node stats
Change-Id: I3a6bcb635701c0f00e47d04fce2113e1ac23b67b Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/stats-api/stats_api.go4
1 files changed, 3 insertions, 1 deletions
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
}