Explorar o código

Fixes seconds counting beyond 60.

Alan Lam %!s(int64=8) %!d(string=hai) anos
pai
achega
35e818052f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/js/app-test.js

+ 1 - 1
public/js/app-test.js

@@ -93,7 +93,7 @@ function updateDurationText() {
 	var testEndTime = date.getTime();
 
 	var duration = testEndTime - testStartTime;
-	var secs = Math.floor(duration / 1000);
+	var secs = Math.floor(duration / 1000) % 60;
 	var mins = Math.floor(secs / 60);
 
 	$("#test-duration-span").text(mins + " min. " + secs + " sec.");