chore: optimize registry collector (#1683)

This commit is contained in:
Jan-Otto Kröpke
2024-10-11 00:18:36 +02:00
committed by GitHub
parent f46f9082f9
commit 22fdb33b4c
4 changed files with 17 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ func MapCounterToIndex(name string) string {
}
func GetPerflibSnapshot(objNames string) (map[string]*PerfObject, error) {
objects, err := QueryPerformanceData(objNames)
objects, err := QueryPerformanceData(objNames, "")
if err != nil {
return nil, err
}