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:
Pascal Quantin 2015-06-09 23:48:06 +02:00 committed by Alexis La Goutte
parent fd82fd467f
commit 6f675b5639
1 changed files with 1 additions and 1 deletions

View File

@ -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 */