Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix statsclient for VPP 20.05-rc0 (master)
[govpp.git]
/
adapter
/
stats_api.go
diff --git
a/adapter/stats_api.go
b/adapter/stats_api.go
index
d67434c
..
90dbeb3
100644
(file)
--- a/
adapter/stats_api.go
+++ b/
adapter/stats_api.go
@@
-113,7
+113,7
@@
func (n Name) String() string {
return string(n)
}
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
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
}
return val
}
-// Reduce
Simple
CounterStatIndex returns reduced CombinedCounterStat s for index i.
+// Reduce
Combined
CounterStatIndex returns reduced CombinedCounterStat s for index i.
func ReduceCombinedCounterStatIndex(s CombinedCounterStat, i int) [2]uint64 {
var val [2]uint64
for _, w := range s {
func ReduceCombinedCounterStatIndex(s CombinedCounterStat, i int) [2]uint64 {
var val [2]uint64
for _, w := range s {