]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 24 Feb 2014 16:36:09 +0000 (17:36 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 24 Feb 2014 16:36:09 +0000 (17:36 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/utils/WorkDuration.java

index 6ed686036dcfba691db917b26f38db64fcd939c3..33f808655cafe29818dfd18bb9fc532c902e6220 100644 (file)
@@ -55,9 +55,9 @@ public class WorkDuration implements Serializable {
   }
 
   public static WorkDuration create(int days, int hours, int minutes, int hoursInDay) {
-    long durationInSeconds = days * hoursInDay * 60 * 60;
-    durationInSeconds += hours * 60 * 60;
-    durationInSeconds += minutes * 60;
+    long durationInSeconds = 3600L * days * hoursInDay;
+    durationInSeconds += 3600L * hours;
+    durationInSeconds += 60L * minutes;
     return new WorkDuration(durationInSeconds, days, hours, minutes, hoursInDay);
   }