diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-09 23:48:06 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-06-10 06:07:56 +0000 |
commit | 6f675b56398a08f2dc674e29a34f872bce97a840 (patch) | |
tree | 43b248894728f4e792fa2d73bc54b0ee99786b1a /ui/cli/tap-iostat.c | |
parent | fd82fd467f0d4863c15af926f19b42f1ea1995b8 (diff) | |
download | wireshark-6f675b56398a08f2dc674e29a34f872bce97a840.tar.gz |
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>
Diffstat (limited to 'ui/cli/tap-iostat.c')
-rw-r--r-- | ui/cli/tap-iostat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/cli/tap-iostat.c b/ui/cli/tap-iostat.c index aeb0f1293c..5641362703 100644 --- a/ui/cli/tap-iostat.c +++ b/ui/cli/tap-iostat.c @@ -629,7 +629,7 @@ iostat_draw(void *arg) borderlen = 30 + dur_mag + (invl_prec == 0 ? 0 : invl_prec+1); } else { 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 */ |