If no display options are passed and "-M both" is active, set a "ratio" option flag to display the in:out ratio as well (#67).

This commit is contained in:
Andrew Wood
2026-04-02 23:08:49 +01:00
parent 8ef4ff2e84
commit 80358e84f3
3 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -1290,7 +1290,8 @@ opts_t opts_parse(unsigned int argc, char **argv)
opts->eta = true;
opts->rate = true;
opts->bytes = true;
/* TODO: add ratio format if "-M both" */
if (PV_SIDE_BOTH == opts->side)
opts->ratio = true;
}
/* If -Z was given but not -E, pretend one -E was given too. */