Add support for names vector and fill name in interface/node stats
[govpp.git] / examples / stats-api / stats_api.go
index b905f60..9808243 100644 (file)
@@ -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
 }