Skip to content

Commit

Permalink
[scripts-library] Show secs in LIB.totalTime when < 1 min
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Oct 7, 2024
1 parent ddfa171 commit d3c3efb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/js/scripts-library.js
Original file line number Diff line number Diff line change
Expand Up @@ -1931,9 +1931,11 @@ function formatLibTotalTime(totalSecs) {
mmStr = minutes == 0 ? '' : (minutes == 1 ? minutes + ' min' : minutes + ' mins');
if (hours > 0) {
output = minutes > 0 ? hhStr + ' ' + mmStr : hhStr;
} else {
} else if (minutes > 0) {
output = mmStr;
}
} else {
output = totalSecs + ' secs'
}
}

return formatNumCommas(output);
Expand Down

0 comments on commit d3c3efb

Please sign in to comment.