mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-03 11:21:52 +02:00
[ui] NodeEditor: refactor ChunksList and add global stats
This commit is contained in:
parent
bd5d447d12
commit
831443c29d
9 changed files with 415 additions and 307 deletions
|
@ -13,3 +13,12 @@ function plainToHtml(t) {
|
|||
var escaped = t.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); // escape text
|
||||
return escaped.replace(/\n/g, '<br>'); // replace line breaks
|
||||
}
|
||||
|
||||
function sec2time(time) {
|
||||
var pad = function(num, size) { return ('000' + num).slice(size * -1); },
|
||||
hours = Math.floor(time / 60 / 60),
|
||||
minutes = Math.floor(time / 60) % 60,
|
||||
seconds = Math.floor(time - minutes * 60);
|
||||
|
||||
return pad(hours, 2) + ':' + pad(minutes, 2) + ':' + pad(seconds, 2)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue