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_v2.go
diff --git
a/adapter/statsclient/statseg_v2.go
b/adapter/statsclient/statseg_v2.go
index
11a3679
..
aa65a3d
100644
(file)
--- a/
adapter/statsclient/statseg_v2.go
+++ b/
adapter/statsclient/statseg_v2.go
@@
-72,7
+72,7
@@
func (ss *statSegmentV2) GetDirectoryVector() dirVector {
return ss.adjust(dirVector(&header.dirVector))
}
return ss.adjust(dirVector(&header.dirVector))
}
-func (ss *statSegmentV2) GetStatDirOnIndex(v dirVector, index uint32) (dirSegment, dirName,
dir
Type) {
+func (ss *statSegmentV2) GetStatDirOnIndex(v dirVector, index uint32) (dirSegment, dirName,
adapter.Stat
Type) {
statSegDir := dirSegment(uintptr(v) + uintptr(index)*unsafe.Sizeof(statSegDirectoryEntryV2{}))
dir := (*statSegDirectoryEntryV2)(statSegDir)
var name []byte
statSegDir := dirSegment(uintptr(v) + uintptr(index)*unsafe.Sizeof(statSegDirectoryEntryV2{}))
dir := (*statSegDirectoryEntryV2)(statSegDir)
var name []byte
@@
-82,7
+82,7
@@
func (ss *statSegmentV2) GetStatDirOnIndex(v dirVector, index uint32) (dirSegmen
break
}
}
break
}
}
- return statSegDir, name,
dir.directoryType
+ return statSegDir, name,
getStatType(dir.directoryType, ss.getErrorVector() != nil)
}
func (ss *statSegmentV2) GetEpoch() (int64, bool) {
}
func (ss *statSegmentV2) GetEpoch() (int64, bool) {