Skip to content

Commit

Permalink
Merge pull request #3058 from batmat/JENKINS-44052-followup
Browse files Browse the repository at this point in the history
[JENKINS-44052] Small followups on #3043
  • Loading branch information
batmat committed Oct 1, 2017
2 parents ff36adf + 1ca5da2 commit be7ac43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/jenkins/util/TimeDuration.java
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion core/src/test/java/jenkins/util/TimeDurationTest.java
@@ -1,6 +1,7 @@
package jenkins.util;

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

import java.util.concurrent.TimeUnit;

Expand All @@ -9,7 +10,7 @@

import static jenkins.util.TimeDuration.*;


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

@Test
Expand Down

0 comments on commit be7ac43

Please sign in to comment.