fix(inputs.win_perf_counters): Ignore PdhCstatusNoInstance as well (#14570)

This commit is contained in:
Joshua Powers 2024-01-17 02:08:59 -07:00 committed by GitHub
parent b638c886f7
commit 2e52da00f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -576,6 +576,7 @@ func isKnownCounterDataError(err error) bool {
pdhErr.ErrorCode == PdhCalcNegativeDenominator ||
pdhErr.ErrorCode == PdhCalcNegativeValue ||
pdhErr.ErrorCode == PdhCstatusInvalidData ||
pdhErr.ErrorCode == PdhCstatusNoInstance ||
pdhErr.ErrorCode == PdhNoData) {
return true
}