mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Parsing: simplify code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user