Skip to content
Permalink
Browse files
Merge pull request #3058 from batmat/JENKINS-44052-followup
[JENKINS-44052] Small followups on #3043
  • Loading branch information
batmat committed Oct 1, 2017
2 parents ff36adf + 1ca5da2 commit be7ac438e013e0ff31c032f33f3ed6929377ea0e
Showing with 4 additions and 2 deletions.
  1. +2 −1 core/src/main/java/jenkins/util/TimeDuration.java
  2. +2 −1 core/src/test/java/jenkins/util/TimeDurationTest.java
@@ -42,7 +42,8 @@ public long getTimeInMillis() {
}

/**
* Returns the duration of this instance in <em>milliseconds</em>.
* Returns the duration of this instance in <em>seconds</em>.
* @since TODO
*/
public int getTimeInSeconds() {
return (int) (millis / 1000L);
@@ -1,6 +1,7 @@
package jenkins.util;

import org.junit.Test;
import org.jvnet.hudson.test.Issue;

import java.util.concurrent.TimeUnit;

@@ -9,7 +10,7 @@

import static jenkins.util.TimeDuration.*;


@Issue("JENKINS-44052")
public class TimeDurationTest {

@Test

0 comments on commit be7ac43

Please sign in to comment.