Modules: adds * to format args which are available in key format

This commit is contained in:
李通洲
2026-09-15 22:20:17 +08:00
parent 53e868667a
commit 02dc6a4428
18 changed files with 33 additions and 30 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ static void formatKey(const FFNetIOOptions* options, FFNetIOResult* inf, uint32_
ffStrbufClear(key);
FF_PARSE_FORMAT_STRING_CHECKED(key, &options->moduleArgs.key, ((FFformatarg[]) {
FF_ARG(index, "index"),
FF_ARG(inf->name, "name"),
FF_ARG(inf->name, "ifname"),
FF_ARG(options->moduleArgs.keyIcon, "icon"),
FF_ARG(FF_MODULE_GET_DISPLAY_NAME(NetIO), "module-name"),
}));
@@ -234,7 +234,7 @@ FFModuleBaseInfo ffNetIOModuleInfo = {
.formatArgs = FF_FORMAT_ARG_LIST(((FFModuleFormatArg[]) {
{ "Size of data received [per second] (formatted)", "rx-size" },
{ "Size of data sent [per second] (formatted)", "tx-size" },
{ "Interface name", "ifname" },
{ "Interface name *", "ifname" },
{ "Is default route", "is-default-route" },
{ "Size of data received [per second] (in bytes)", "rx-bytes" },
{ "Size of data sent [per second] (in bytes)", "tx-bytes" },