do not display fractions in percentage

This commit is contained in:
Zlatin Balevsky
2019-10-21 20:37:30 +01:00
parent eea3b2563b
commit fd46b3c7d6

View File

@ -49,7 +49,7 @@ class BrowseView {
panel (constraints : BorderLayout.NORTH) {
label(text: "Status:")
label(text: bind {model.status.toString()})
label(text : bind {model.totalResults == 0 ? "" : (model.resultCount * 100 / model.totalResults)+ "%"})
label(text : bind {model.totalResults == 0 ? "" : Math.round(model.resultCount * 100 / model.totalResults)+ "%"})
}
scrollPane (constraints : BorderLayout.CENTER){
resultsTable = table(autoCreateRowSorter : true) {