mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-03 04:18:58 +00:00
format_duration_human: say <0.1s instead of 0s
if we get a duration of <=0.1s it should actually be somewhere betweeen 0 and 0.1 so return <0.1s Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b1d446d0b2
commit
b2d7d422ec
@ -157,8 +157,8 @@ utilities: {
|
|||||||
format_duration_human: function(ut) {
|
format_duration_human: function(ut) {
|
||||||
let seconds = 0, minutes = 0, hours = 0, days = 0;
|
let seconds = 0, minutes = 0, hours = 0, days = 0;
|
||||||
|
|
||||||
if (ut <= 0) {
|
if (ut <= 0.1) {
|
||||||
return '0s';
|
return '<0.1s';
|
||||||
}
|
}
|
||||||
|
|
||||||
let remaining = ut;
|
let remaining = ut;
|
||||||
|
Loading…
Reference in New Issue
Block a user