!447 告警清理

Merge pull request !447 from wenlong_12/master
This commit is contained in:
openharmony_ci 2024-02-28 06:25:56 +00:00 committed by Gitee
commit d60b3521b8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -755,7 +755,7 @@ void PerfEvents::SetSampleFrequency(unsigned int frequency)
return;
}
if (sampleFreq_ > static_cast<unsigned int>(maxRate)) {
sampleFreq_ = maxRate;
sampleFreq_ = static_cast<unsigned int>(maxRate);
if (!printFlag) {
printf("Adjust sampling frequency to maximum allowed frequency %d.\n", maxRate);
printFlag = true;