#!/mod/bin/jimsh source /mod/var/mongoose/lib/epg.class source /mod/var/mongoose/lib/spinner.class source /mod/var/mongoose/lib/altrow [spinner new { text "Loading EPG Data..." size "1.2em" style "margin: 1em;" }] start puts {
} set start [clock milliseconds] set records [epg fetch dump -time [clock seconds]] set got [clock milliseconds] puts { } proc rsort {v1 v2} { set v1s [$v1 get channel_num] set v2s [$v2 get channel_num] if {$v1s == $v2s} { return 0 } if {$v1s > $v2s } { return 1 } return -1 } foreach record [lsort -command rsort $records] { altrow puts "" puts "" puts [$record cell] puts [[$record next] cell] puts "" } puts "
Channel On Now On Next
[$record get channel_num] [$record get channel_name]
" set end [clock milliseconds] puts " Retrieved now in: [expr [expr $got - $start] / 1000.0] seconds.
All rendered in: [expr [expr $end - $start] / 1000.0] seconds.
" epg cleanup