Skip to content

Commit

Permalink
fix: #332 (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
hengfeiyang committed Jul 16, 2022
1 parent 2767758 commit 66328e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/core/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ func (t *telemetry) GetIndexSize(indexName string) uint64 {
}

func (t *telemetry) HeartBeat() {
m, _ := mem.VirtualMemory()
m, err := mem.VirtualMemory()
if err != nil {
log.Error().Err(err).Msg("core.Telemetry.HeartBeat: error getting memory info")
return
}
data := make(map[string]interface{})
data["index_count"] = ZINC_INDEX_LIST.Len()
data["total_index_size_mb"] = t.TotalIndexSize()
Expand Down

0 comments on commit 66328e7

Please sign in to comment.