Use new layout for remote class loader stats
import hudson.slaves.SlaveComputer
def fmt = new java.text.DecimalFormat("0.0")
-def right = 'text-align: right'
if (my instanceof SlaveComputer) {
SlaveComputer c = my
- table(class: 'bigtable') {
+ table(class: 'jenkins-table') {
+ thead {
tr {
- th _('Loading Type')
- th _('Time (s)')
- th _('Count')
+ th { text(_('Loading Type')) }
+ th { text(_('Time (s)')) }
+ th { text(_('Count')) }
+ }
}
tr {
td _('Classes')
- td(style: right) {text(fmt.format(c.classLoadingTime / 1000000000))}
- td(style: right) {
+ td {text(fmt.format(c.classLoadingTime / 1000000000))}
+ td {
text(c.classLoadingCount)
def classLoadingPrefetchCacheCount = c.classLoadingPrefetchCacheCount
if (classLoadingPrefetchCacheCount != -1) {
@@ -26,8 +27,8 @@ if (my instanceof SlaveComputer) {
}
tr {
td _('Resources')
- td(style: right) {text(fmt.format(c.resourceLoadingTime / 1000000000))}
- td(style: right) {text(c.resourceLoadingCount)}
+ td {text(fmt.format(c.resourceLoadingTime / 1000000000))}
+ td {text(c.resourceLoadingCount)}
}
}
}
