newrelic / nri-perfmon

Windows Perfmon / WMI On-Host Integration for New Relic Infrastructure
Other
13 stars 19 forks source link

Fix issue when counter fails #46

Closed david-garcia-garcia closed 1 year ago

david-garcia-garcia commented 1 year ago

The dictionary KEY in the affected loop are modified if accessing a counter fails, in the catch block:

thisPC.PerformanceCounters.Remove(pcKey);

This breaks containing loop interation key.

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

ricegi commented 1 year ago

David - thanks for your submission - we'll get that reviewed ASAP