forked from hummypkg/webif
Fix divide by 0 error
This commit is contained in:
parent
7bd5bbc3c0
commit
44c52143a7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user