Surround the "--average-rate" average rate with brackets rather than square brackets, to differentiate it from the "--rate" current rate.

This commit is contained in:
Andrew Wood
2024-10-04 19:59:21 +01:00
parent a2c6490d31
commit 9aef419c4c
4 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -848,11 +848,11 @@ bool pv_format(pvstate_t state, bool final)
if (state->control.bits && !state->control.linemode) {
/* bits per second */
pv__sizestr(component_content, component_buf_size,
"[%s]", 8 * state->calc.average_rate, "", _("b/s"), count_type);
"(%s)", 8 * state->calc.average_rate, "", _("b/s"), count_type);
} else {
/* bytes or lines per second */
pv__sizestr(component_content,
component_buf_size, "[%s]", state->calc.average_rate, _("/s"), _("B/s"),
component_buf_size, "(%s)", state->calc.average_rate, _("/s"), _("B/s"),
count_type);
}
/*@+mustfreefresh @ *//* splint: see above. */