pdh: preserve legitimate instances ending in _Total (#2588)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-09 10:38:18 +02:00
committed by GitHub
parent f8d6d552ce
commit 566c991e50
4 changed files with 155 additions and 3 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ func (c *Collector[T]) Collect(dst *[]T) error {
for _, perfInstance := range perfObject.Instances {
instanceName := perfInstance.Name
if strings.HasSuffix(instanceName, "_Total") {
if pdh.IsTotalInstance(c.object, instanceName) {
continue
}