Percentage: simplify usage of ffAppendPercentBar

This commit is contained in:
李通洲
2024-01-20 13:27:55 +08:00
parent bd71aa931f
commit da5c44b3d0
8 changed files with 41 additions and 44 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ void ffPrintCPUUsage(FFCPUUsageOptions* options)
if (!options->separate)
{
if(instance.config.display.percentType & FF_PERCENTAGE_TYPE_BAR_BIT)
ffAppendPercentBar(&str, avgValue, 0, 50, 80);
ffAppendPercentBar(&str, avgValue, 50, 80);
if(instance.config.display.percentType & FF_PERCENTAGE_TYPE_NUM_BIT)
{
if(str.length > 0)