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}} {
|
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) }
|
if {!$raw} { set d $($d / 60) }
|
||||||
return $d
|
return $d
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user