Browse Source

Fixes seconds counting beyond 60.

Alan Lam 8 years ago
parent
commit
35e818052f
1 changed files with 1 additions and 1 deletions
  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.");