tshark: fix computation of iostat table width when specifying an interval
Bug: 11262 Change-Id: I57468d1e96ade8926a2911bd035adf85500eba39 Reviewed-on: https://code.wireshark.org/review/8860 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
fd82fd467f
commit
6f675b5639
|
@ -629,7 +629,7 @@ iostat_draw(void *arg)
|
||||||
borderlen = 30 + dur_mag + (invl_prec == 0 ? 0 : invl_prec+1);
|
borderlen = 30 + dur_mag + (invl_prec == 0 ? 0 : invl_prec+1);
|
||||||
} else {
|
} else {
|
||||||
invl_prec = iot->invl_prec;
|
invl_prec = iot->invl_prec;
|
||||||
borderlen = 24 + invl_mag + (invl_prec == 0 ? 0 : invl_prec+1);
|
borderlen = 25 + MAX(invl_mag,dur_mag) + (invl_prec == 0 ? 0 : invl_prec+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Round the duration according to invl_prec */
|
/* Round the duration according to invl_prec */
|
||||||
|
|
Loading…
Reference in New Issue