forked from lix-project/hydra
Don't break inside durations
This commit is contained in:
parent
20f1bf215a
commit
a49457b2fd
|
@ -40,9 +40,9 @@ END;
|
|||
|
||||
|
||||
BLOCK renderDuration;
|
||||
IF duration >= 24 * 60 * 60; duration div (24 * 60 * 60) %]d [% END;
|
||||
IF duration >= 60 * 60; duration div (60 * 60) % 24 %]h [% END;
|
||||
IF duration >= 60; duration div 60 % 60 %]m [% END;
|
||||
IF duration >= 24 * 60 * 60; duration div (24 * 60 * 60) %]d [% END;
|
||||
IF duration >= 60 * 60; duration div (60 * 60) % 24 %]h [% END;
|
||||
IF duration >= 60; duration div 60 % 60 %]m [% END;
|
||||
duration % 60 %]s[%
|
||||
END;
|
||||
|
||||
|
|
Loading…
Reference in a new issue