Windows: silence uncritical performance counter error

This commit is contained in:
Megamouse 2023-06-16 19:14:11 +02:00
parent d5654d64d5
commit a6d8c4343f

View File

@ -195,6 +195,10 @@ namespace utils
}
}
}
else if (PDH_CALC_NEGATIVE_DENOMINATOR == status) // Apparently this is a common uncritical error
{
perf_log.notice("Failed to get per core cpu usage: %s", pdh_error(status));
}
else
{
perf_log.error("Failed to get per core cpu usage: %s", pdh_error(status));