fix string and speed columns

java-i2p-warning
Zlatin Balevsky 2022-08-30 12:15:50 +01:00
parent dede405c46
commit baf783015a
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class TableUtil {
static void sizeColumn(JTable table, int index) {
StringBuffer buf = new StringBuffer()
SizeFormatter.format(FileHasher.MAX_SIZE - 1, buf)
String str = buf.toString() + trans("BYTES_SHORT").length()
String str = buf.toString() + trans("BYTES_SHORT")
int columnSize = stringWidth(table, str)
fixedColumnSize(table, index, columnSize + 30)
}
@ -47,7 +47,7 @@ class TableUtil {
static void speedColumn(JTable table, int index) {
StringBuffer buf = new StringBuffer()
SizeFormatter.format(FileHasher.MAX_SIZE - 1, buf)
String str = buf.toString() + trans("B_SEC").length()
String str = buf.toString() + trans("B_SEC")
int columnSize = stringWidth(table, str)
fixedColumnSize(table, index, columnSize + 30)
}