CPUUsage: always print something

This commit is contained in:
李通洲
2023-11-01 15:36:13 +08:00
parent 6e816fca6e
commit 1b3d713e50
2 changed files with 9 additions and 6 deletions
+6 -5
View File
@@ -40,11 +40,12 @@ retry:
FFCpuUsageInfo* cpuTime2 = ffListGet(&cpuTimes2, i);
if (cpuTime2->totalAll <= cpuTime1->totalAll)
{
ffListClear(&cpuTimes2);
ffTimeSleep(200);
if (++retryCount >= 10)
return "Retry count exceeded";
goto retry;
if (++retryCount <= 3)
{
ffListClear(&cpuTimes2);
ffTimeSleep(200);
goto retry;
}
}
}