We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3d713 commit 256c9beCopy full SHA for 256c9be
src/modules/cpuusage/cpuusage.c
@@ -25,16 +25,19 @@ void ffPrintCPUUsage(FFCPUUsageOptions* options)
25
uint32_t index = 0;
26
FF_LIST_FOR_EACH(double, percent, percentages)
27
{
28
- sumValue += *percent;
29
- if (*percent > maxValue)
+ if (*percent == *percent)
30
31
- maxValue = *percent;
32
- maxIndex = index;
33
- }
34
- if (*percent < minValue)
35
- {
36
- minValue = *percent;
37
- minIndex = index;
+ sumValue += *percent;
+ if (*percent > maxValue)
+ {
+ maxValue = *percent;
+ maxIndex = index;
+ }
+ if (*percent < minValue)
38
+ minValue = *percent;
39
+ minIndex = index;
40
41
}
42
++index;
43
0 commit comments