diff --git a/stats.go b/stats.go index 6e2b4db..38def77 100644 --- a/stats.go +++ b/stats.go @@ -28,9 +28,9 @@ type Stats struct { TotNewDocsDropped uint64 TotNewVectorsProcessed uint64 - TotPersistBeg uint64 - TotPersistEnd uint64 - TotPersistErrors uint64 + TotPersistBeg uint64 + TotPersistEnd uint64 + TotPersistErr uint64 TotMergesBeg uint64 TotMergesEnd uint64 @@ -41,6 +41,7 @@ type Stats struct { TotVecSectionMergesBegin uint64 TotVecSectionMergesEnd uint64 + TotVecSectionMergeErr uint64 TotVecSectionMergeTime uint64 TotVecSectionVecsReconstructed uint64 TotVecSectionIVFIndexesCreated uint64 @@ -68,7 +69,7 @@ type Stats struct { } func (s *Stats) StatsMap() map[string]interface{} { - svet := reflect.TypeOf(*s) + svet := reflect.TypeOf(s).Elem() n := svet.NumField() m := make(map[string]interface{}, n) base := unsafe.Pointer(s)