SSVD-2738 - SSVD-2734 - SSVD-2733 (#1187)

* SSVD-2738 - Count Down Bug

* SSVD-2734 - Copy text

* SSVD-2733 - Add Unit
This commit is contained in:
Juan Pablo Risso
2016-09-06 11:39:18 -04:00
committed by GitHub
parent 090a306939
commit 383f72580a
3 changed files with 9 additions and 9 deletions

View File

@@ -761,7 +761,7 @@ String displayableTime(timeRemaining) {
return "${minutes}:00"
}
def fraction = "0.${parts[1]}" as double
def seconds = "${60 * fraction as int}".padRight(2, "0")
def seconds = "${60 * fraction as int}".padLeft(2, "0")
return "${minutes}:${seconds}"
}
@@ -1101,4 +1101,4 @@ def hasStartLevel() {
def hasEndLevel() {
return (endLevel != null && endLevel != "")
}
}