fix(inputs.win_perf_counters): Ignore PdhCstatusNoInstance as well (#14570)
This commit is contained in:
parent
b638c886f7
commit
2e52da00f6
|
|
@ -576,6 +576,7 @@ func isKnownCounterDataError(err error) bool {
|
||||||
pdhErr.ErrorCode == PdhCalcNegativeDenominator ||
|
pdhErr.ErrorCode == PdhCalcNegativeDenominator ||
|
||||||
pdhErr.ErrorCode == PdhCalcNegativeValue ||
|
pdhErr.ErrorCode == PdhCalcNegativeValue ||
|
||||||
pdhErr.ErrorCode == PdhCstatusInvalidData ||
|
pdhErr.ErrorCode == PdhCstatusInvalidData ||
|
||||||
|
pdhErr.ErrorCode == PdhCstatusNoInstance ||
|
||||||
pdhErr.ErrorCode == PdhNoData) {
|
pdhErr.ErrorCode == PdhNoData) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue