webif/var/mongoose/html/sched/cleanup.jim
hummypkg abc7d0655e add schedule cleanup button
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1699 2a923420-c742-0410-a762-8d5b09965624
2013-10-07 20:17:22 +00:00

29 lines
371 B
Plaintext
Executable File

#!/mod/bin/jimsh
source /mod/webif/lib/setup
require rsv.class
header
set events [rsv list]
set n [clock seconds]
foreach event $events {
set s [$event get nsttime]
set d [$event get nduration]
set e $($s + $d)
if {$n - $e > 7200 && [$event get ersvtype] <= 3} {
$event clear_ulslot
$event set_delete
$event insert
system restartpending
}
}
footer