forked from hummypkg/webif
1
0
Fork 0

Fix divide by 0 error

This commit is contained in:
prpr 2023-07-02 10:27:43 +01:00
parent 7bd5bbc3c0
commit 44c52143a7
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ ts method dir {} {
}
ts method duration {{raw 0}} {
set d $(($end && $start && $end > $start) ? $end - $start : 0)
set d $(($end && $start && $end > $start) ? $end - $start : 60)
if {!$raw} { set d $($d / 60) }
return $d
}