)
);
//
for (Thread thread : threads) {
Color c = colorMapping.get(thread.getState());
long seconds = times2.get(thread.getId()) / 1000000000;
long min = seconds / 60;
String time = min + ":" + (seconds % 60);
long cpu = cpus.get(thread);
ThreadGroup group = thread.getThreadGroup();
table.row(
new LabelElement(thread.getId()),
new LabelElement(thread.getName()),
new LabelElement(group == null ? "" : group.getName()),
new LabelElement(thread.getPriority()),
new LabelElement(thread.getState()).style(c.fg()),
new LabelElement(cpu),
new LabelElement(time),
new LabelElement(thread.isInterrupted()),
new LabelElement(thread.isDaemon())
);