Parsing: simplify code

This commit is contained in:
李通洲 committed 2023-07-27 15:17:54 +08:00
1 parent de3cb1f855
commit c9741d1662
6 files changed
+25 -18

No files matched your search

+2 -2
View File
@@ -20,10 +20,10 @@ void ffPrintMemory(FFMemoryOptions* options)
}
FF_STRBUF_AUTO_DESTROY usedPretty = ffStrbufCreate();
ffParseSize(storage.bytesUsed, instance.config.binaryPrefixType, &usedPretty);
ffParseSize(storage.bytesUsed, &usedPretty);
FF_STRBUF_AUTO_DESTROY totalPretty = ffStrbufCreate();
ffParseSize(storage.bytesTotal, instance.config.binaryPrefixType, &totalPretty);
ffParseSize(storage.bytesTotal, &totalPretty);
uint8_t percentage = storage.bytesTotal == 0
? 0