Swap: prints Disabled instead of 0 B / 0 B (0%) which seems a bug

This commit is contained in:
李通洲
2022-09-21 15:21:51 +08:00
parent 3068b5bcb2
commit 65ed48a1bc
+4 -1
View File
@@ -27,7 +27,10 @@ static void printMemory(FFinstance* instance, const char* name, const FFModuleAr
if(moduleArgs->outputFormat.length == 0)
{
ffPrintLogoAndKey(instance, name, 0, &moduleArgs->key);
printf("%s / %s (%u%%)\n", usedPretty.chars, totalPretty.chars, storage->percentage);
if (storage->bytesTotal == 0)
puts("Disabled");
else
printf("%s / %s (%u%%)\n", usedPretty.chars, totalPretty.chars, storage->percentage);
}
else
{