mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-01 06:41:06 -07:00
Merge branch 'master' into feature_sync_button
This commit is contained in:
commit
85d6919ce6
478 changed files with 1284 additions and 1365 deletions
|
|
@ -65,11 +65,11 @@ Rectangle
|
|||
|
||||
function getPrettyTime(time)
|
||||
{
|
||||
var hours = Math.round(time / 3600)
|
||||
var hours = Math.floor(time / 3600)
|
||||
time -= hours * 3600
|
||||
var minutes = Math.round(time / 60);
|
||||
var minutes = Math.floor(time / 60);
|
||||
time -= minutes * 60
|
||||
var seconds = Math.round(time);
|
||||
var seconds = Math.floor(time);
|
||||
|
||||
var finalTime = strPadLeft(hours, "0", 2) + ':' + strPadLeft(minutes,'0',2)+ ':' + strPadLeft(seconds,'0',2);
|
||||
return finalTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue