mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
remove display of fractional seconds
This commit is contained in:
parent
0de5a5483c
commit
fe5b801203
@ -71,7 +71,7 @@ function formatTime(sec_num) {
|
||||
|
||||
let hours = Math.floor(sec_num / 3600);
|
||||
let minutes = Math.floor((sec_num - (hours * 3600)) / 60);
|
||||
let seconds = sec_num - (hours * 3600) - (minutes * 60);
|
||||
let seconds = Math.round(sec_num - (hours * 3600) - (minutes * 60));
|
||||
|
||||
if (hours < 10) {hours = "0"+hours;}
|
||||
if (minutes < 10) {minutes = "0"+minutes;}
|
||||
|
Loading…
Reference in New Issue
Block a user