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 stats API for vpp 22.06
[govpp.git]
/
adapter
/
statsclient
/
statseg_v1.go
diff --git
a/adapter/statsclient/statseg_v1.go
b/adapter/statsclient/statseg_v1.go
index
3f15ce2
..
202a1b0
100644
(file)
--- a/
adapter/statsclient/statseg_v1.go
+++ b/
adapter/statsclient/statseg_v1.go
@@
-75,7
+75,7
@@
func (ss *statSegmentV1) getErrorVector() (unsafe.Pointer, error) {
return nil, fmt.Errorf("error vector is not defined for stats API v1")
}
return nil, fmt.Errorf("error vector is not defined for stats API v1")
}
-func (ss *statSegmentV1) GetStatDirOnIndex(v dirVector, index uint32) (dirSegment, dirName,
dir
Type) {
+func (ss *statSegmentV1) GetStatDirOnIndex(v dirVector, index uint32) (dirSegment, dirName,
adapter.Stat
Type) {
statSegDir := dirSegment(uintptr(v) + uintptr(index)*unsafe.Sizeof(statSegDirectoryEntryV1{}))
dir := (*statSegDirectoryEntryV1)(statSegDir)
var name []byte
statSegDir := dirSegment(uintptr(v) + uintptr(index)*unsafe.Sizeof(statSegDirectoryEntryV1{}))
dir := (*statSegDirectoryEntryV1)(statSegDir)
var name []byte
@@
-85,7
+85,7
@@
func (ss *statSegmentV1) GetStatDirOnIndex(v dirVector, index uint32) (dirSegmen
break
}
}
break
}
}
- return statSegDir, name,
dir.directoryType
+ return statSegDir, name,
getStatType(dir.directoryType, true)
}
func (ss *statSegmentV1) GetEpoch() (int64, bool) {
}
func (ss *statSegmentV1) GetEpoch() (int64, bool) {