Memory: fix percentage calculation

This commit is contained in:
李通洲
2022-09-21 15:19:46 +08:00
parent 9da97f5860
commit 3068b5bcb2
+1 -1
View File
@@ -5,7 +5,7 @@ void ffDetectMemoryImpl(FFMemoryResult* memory);
static void calculatePercentage(FFMemoryStorage* storage)
{
if(storage->error.length == 0)
if(storage->error.length != 0)
return;
if(storage->bytesTotal == 0)