mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 20:24:19 +01:00
Globals: use generic selection when passing format args
This commit is contained in:
@@ -61,10 +61,10 @@ void ffPrintMemory(FFMemoryOptions* options)
|
||||
FF_STRBUF_AUTO_DESTROY percentageBar = ffStrbufCreate();
|
||||
ffPercentAppendBar(&percentageBar, percentage, options->percent, &options->moduleArgs);
|
||||
FF_PRINT_FORMAT_CHECKED(FF_MEMORY_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, FF_MEMORY_NUM_FORMAT_ARGS, ((FFformatarg[]){
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &usedPretty, "used"},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &totalPretty, "total"},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &percentageNum, "percentage"},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &percentageBar, "percentage-bar"},
|
||||
FF_FORMAT_ARG(usedPretty, "used"),
|
||||
FF_FORMAT_ARG(totalPretty, "total"),
|
||||
FF_FORMAT_ARG(percentageNum, "percentage"),
|
||||
FF_FORMAT_ARG(percentageBar, "percentage-bar"),
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user