[FIR] Fix table rendering
This commit is contained in:
@@ -287,7 +287,6 @@ class FirResolveBench(val withProgress: Boolean) {
|
|||||||
timeCell(totalTime, fractionDigits = 0)
|
timeCell(totalTime, fractionDigits = 0)
|
||||||
timeCell(totalTime / averageFiles)
|
timeCell(totalTime / averageFiles)
|
||||||
cell("$averageFiles")
|
cell("$averageFiles")
|
||||||
cell("$averageFiles")
|
|
||||||
timeCell(totalCpuTime, fractionDigits = 0)
|
timeCell(totalCpuTime, fractionDigits = 0)
|
||||||
timeCell(totalUserTime)
|
timeCell(totalUserTime)
|
||||||
timeCell(totalGcTime, inputUnit = TableTimeUnit.MS)
|
timeCell(totalGcTime, inputUnit = TableTimeUnit.MS)
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class RTableContext {
|
|||||||
|
|
||||||
fun printout(out: Appendable) {
|
fun printout(out: Appendable) {
|
||||||
val colSize = IntArray(cols) { index ->
|
val colSize = IntArray(cols) { index ->
|
||||||
data.filterIsInstance<Row.Data>().fold(0) { acc, row -> maxOf(acc, row.cells[index].text.length) }
|
data.filterIsInstance<Row.Data>().fold(0) { acc, row -> maxOf(acc, row.cells.getOrNull(index)?.text?.length ?: 0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user