[SimBot-commits] CVS: simbot/plugins sqlite-logger.pl,1.60,1.61
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-08-17 12:29:24
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2628/plugins Modified Files: sqlite-logger.pl Log Message: Show the channel name in the stats page title, and the time zone for the graph. (Which is always UTC currently, but that will change) Index: sqlite-logger.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/sqlite-logger.pl,v retrieving revision 1.60 retrieving revision 1.61 diff -u -d -p -r1.60 -r1.61 --- sqlite-logger.pl 17 Aug 2005 01:49:18 -0000 1.60 +++ sqlite-logger.pl 17 Aug 2005 12:29:08 -0000 1.61 @@ -990,7 +990,7 @@ sub web_stats { } my @nick_list; - foreach my $cur_key (keys %nick_counts) { + foreach my $cur_key (sort keys %nick_counts) { my %hash; $hash{'link'} = "/stats?nick_id=${cur_key}"; $hash{'nick'} = &get_nickchan_name($cur_key); @@ -1010,12 +1010,13 @@ sub web_stats { $stats_template->param(nickloop => \@nick_list, hourloop => \@hour_list, channel => &get_nickchan_name($channel_id), + timezone => 'UTC', ); my $base_template = &$get_template('base'); $base_template->param( content => $stats_template->output(), - title => 'Channel Statistics', + title => &get_nickchan_name($channel_id) . ' Statistics', ); $response->content($base_template->output()); |