From 5624972211a865153879b02a43ebd802d1007a77 Mon Sep 17 00:00:00 2001 From: Albert Cardona Date: Tue, 14 Apr 2009 17:11:25 +0200 Subject: [PATCH] Bureaucrat reports elapsed time in integers again. --- ini/trakem2/utils/Bureaucrat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ini/trakem2/utils/Bureaucrat.java b/ini/trakem2/utils/Bureaucrat.java index a8b79458..7b28109b 100644 --- a/ini/trakem2/utils/Bureaucrat.java +++ b/ini/trakem2/utils/Bureaucrat.java @@ -123,9 +123,9 @@ public class Bureaucrat extends Thread { try { Thread.sleep(sandwitch); } catch (InterruptedException ie) {} float elapsed_seconds = (System.currentTimeMillis() - onset) / 1000.0f; if (elapsed_seconds < 60) { - sb.append(elapsed_seconds).append(" seconds"); + sb.append((int)elapsed_seconds).append(" seconds"); } else { - sb.append(elapsed_seconds / 60).append("' ").append(elapsed_seconds % 60).append("''"); + sb.append((int)(elapsed_seconds / 60)).append("' ").append((int)(elapsed_seconds % 60)).append("''"); } Utils.showStatus(sb.toString(), false); // don't steal focus // Increment up to 1 second -- 2.11.4.GIT