Skip to content

Commit 648530e

Browse files
committed
PhysicalDisk: fix doubled output in custom formation
Fix #852
1 parent 83c1fe2 commit 648530e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/modules/physicaldisk/physicaldisk.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ void ffPrintPhysicalDisk(FFPhysicalDiskOptions* options)
107107
ffTempsAppendNum(dev->temperature, &tempStr, options->tempConfig);
108108
if (dev->type & FF_PHYSICALDISK_TYPE_READWRITE)
109109
readOnlyType = "Read-write";
110-
ffParseSize(dev->size, &buffer);
111110
FF_PRINT_FORMAT_CHECKED(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, FF_PHYSICALDISK_NUM_FORMAT_ARGS, ((FFformatarg[]){
112111
{FF_FORMAT_ARG_TYPE_STRBUF, &buffer},
113112
{FF_FORMAT_ARG_TYPE_STRBUF, &dev->name},
@@ -252,7 +251,7 @@ void ffGeneratePhysicalDiskJsonResult(FFPhysicalDiskOptions* options, yyjson_mut
252251

253252
void ffPrintPhysicalDiskHelpFormat(void)
254253
{
255-
FF_PRINT_MODULE_FORMAT_HELP_CHECKED(FF_PHYSICALDISK_MODULE_NAME, "{1}", FF_PHYSICALDISK_NUM_FORMAT_ARGS, ((const char* []) {
254+
FF_PRINT_MODULE_FORMAT_HELP_CHECKED(FF_PHYSICALDISK_MODULE_NAME, "{1} [{6}, {7}, {8}]", FF_PHYSICALDISK_NUM_FORMAT_ARGS, ((const char* []) {
256255
"Device size (formatted)",
257256
"Device name",
258257
"Device interconnect type",

0 commit comments

Comments
 (0)