Skip to content

Commit 933eba8

Browse files
committed
round decreasing timers to mirror increasing timers
1 parent 1eada3b commit 933eba8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

plugin/notes/notes.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,10 @@ <h4 class="label">Notes</h4>
464464
secondsEl = timeEl.querySelector( '.seconds-value' );
465465

466466
function _displayTime( hrEl, minEl, secEl, time) {
467-
var hours = Math.floor( time / ( 1000 * 60 * 60 ) );
468-
var minutes = Math.floor( ( time / ( 1000 * 60 ) ) % 60 );
469-
var seconds = Math.floor( ( time / 1000 ) % 60 );
467+
time = Math.round(time / 1000);
468+
var seconds = time % 60;
469+
var minutes = ( time / 60 ) % 60 ;
470+
var hours = time / ( 60 * 60 ) ;
470471
hrEl.innerHTML = zeroPadInteger( hours );
471472
if (hours == 0) {
472473
hrEl.classList.add( 'mute' );

0 commit comments

Comments
 (0)