Percentage: simplify usage of ffAppendPercentBar

This commit is contained in:
李通洲 committed 2024-01-20 13:27:55 +08:00
1 parent bd71aa931f
commit da5c44b3d0
8 files changed
+41 -44

No files matched your search

+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)