mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 15:39:47 +00:00
commit
d60b3521b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user