X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=adapter%2Fstats_api.go;h=90dbeb394b5e5b78a81af4c1aa0265d7a02e3a09;hb=db87efa2ec1e91e81517236b164b279e57b8daa8;hp=d67434c8ece5367362ba15ac3a312c8e1bfcdec0;hpb=9f27eeff53ee501b8641595baa7cbc2f0014a68c;p=govpp.git diff --git a/adapter/stats_api.go b/adapter/stats_api.go index d67434c..90dbeb3 100644 --- a/adapter/stats_api.go +++ b/adapter/stats_api.go @@ -113,7 +113,7 @@ func (n Name) String() string { return string(n) } -// Data represents some type of stat which is usually defined by StatType. +// Stat represents some type of stat which is usually defined by StatType. type Stat interface { // IsZero returns true if all of its values equal to zero. IsZero() bool @@ -205,7 +205,7 @@ func ReduceSimpleCounterStatIndex(s SimpleCounterStat, i int) uint64 { return val } -// ReduceSimpleCounterStatIndex returns reduced CombinedCounterStat s for index i. +// ReduceCombinedCounterStatIndex returns reduced CombinedCounterStat s for index i. func ReduceCombinedCounterStatIndex(s CombinedCounterStat, i int) [2]uint64 { var val [2]uint64 for _, w := range s {