"Usage: dcb [ OPTIONS ] OBJECT { COMMAND | help }\n"
" dcb [ -f | --force ] { -b | --batch } filename [ -N | --Netns ] netnsname\n"
"where OBJECT := ets\n"
- " OPTIONS := [ -V | --Version | -j | --json | -p | --pretty\n"
- " | -s | --statistics | -v | --verbose ]\n");
+ " OPTIONS := [ -V | --Version | -i | --iec | -j | --json\n"
+ " | -p | --pretty | -s | --statistics | -v | --verbose]\n");
}
static int dcb_cmd(struct dcb *dcb, int argc, char **argv)
{ "Version", no_argument, NULL, 'V' },
{ "force", no_argument, NULL, 'f' },
{ "batch", required_argument, NULL, 'b' },
+ { "iec", no_argument, NULL, 'i' },
{ "json", no_argument, NULL, 'j' },
{ "pretty", no_argument, NULL, 'p' },
{ "statistics", no_argument, NULL, 's' },
return EXIT_FAILURE;
}
- while ((opt = getopt_long(argc, argv, "b:fhjpsvN:V",
+ while ((opt = getopt_long(argc, argv, "b:fhijpsvN:V",
long_options, NULL)) >= 0) {
switch (opt) {
goto dcb_free;
}
break;
+ case 'i':
+ dcb->use_iec = true;
+ break;
case 'h':
dcb_help();
return 0;
Don't terminate dcb on errors in batch mode. If there were any errors during
execution of the commands, the application return code will be non zero.
+.TP
+.BR "\-i" , " --iec"
+When showing rates, use ISO/IEC 1024-based prefixes (Ki, Mi, Bi) instead of
+the 1000-based ones (K, M, B).
+
.TP
.BR "\-j" , " --json"
Generate JSON output.