mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 12:21:59 +02:00
[Utils] fixing rounding issues in time display
Prevent getting strings like "5m60s" when rounding up.
This commit is contained in:
parent
9a09310f07
commit
7abbb50302
4 changed files with 53 additions and 36 deletions
|
@ -50,12 +50,12 @@ FocusScope {
|
|||
KeyValue {
|
||||
key: "Time"
|
||||
property real time: node.elapsedTime
|
||||
value: time > 0.0 ? Format.sec2time(time) : "-"
|
||||
value: time > 0.0 ? Format.sec2timecode(time) : "-"
|
||||
}
|
||||
KeyValue {
|
||||
key: "Cumulated Time"
|
||||
property real time: node.recursiveElapsedTime
|
||||
value: time > 0.0 ? Format.sec2time(time) : "-"
|
||||
value: time > 0.0 ? Format.sec2timecode(time) : "-"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue