From 786d15ff9c631e7f90f9677308a7da05799f0d96 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Thu, 26 May 2016 11:49:45 +0200 Subject: [PATCH] =?UTF-8?q?TimeUtil.durationToString()=20g=C3=A8re=20les?= =?UTF-8?q?=20grandes=20valeurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fr/pandacube/java/util/TimeUtil.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/fr/pandacube/java/util/TimeUtil.java b/src/fr/pandacube/java/util/TimeUtil.java index 2947525..0aa1603 100644 --- a/src/fr/pandacube/java/util/TimeUtil.java +++ b/src/fr/pandacube/java/util/TimeUtil.java @@ -7,13 +7,13 @@ public class TimeUtil { long msec = msec_time; j = (int) (msec / (1000 * 60 * 60 * 24)); - msec -= (1000 * 60 * 60 * 24) * j; + msec -= (long)(1000 * 60 * 60 * 24) * j; h = (int) (msec / (1000 * 60 * 60)); - msec -= (1000 * 60 * 60) * h; + msec -= (long)(1000 * 60 * 60) * h; m = (int) (msec / (1000 * 60)); - msec -= (1000 * 60) * m; + msec -= (long)(1000 * 60) * m; s = (int) (msec / 1000); - msec -= 1000 * s; + msec -= (long)1000 * s; String result = ""; if (j>0) result = result.concat(j+"j "); @@ -36,4 +36,6 @@ public class TimeUtil { { return durationToString(msec_time, false); } + + }