diff --git a/plugins/other/spotweb_cat_average b/plugins/other/spotweb_cat_average index 9a460758..8c8ddd4e 100755 --- a/plugins/other/spotweb_cat_average +++ b/plugins/other/spotweb_cat_average @@ -29,17 +29,17 @@ # # [spotweb_cat_average] # env.period 1800 # The period over wich to check in seconds, default to 30 minutes (1800 seconds) -# env.countporn = 'no' # Also count porn? Default is 'yes' +# env.countporn 'no' # Also count porn? Default is 'yes' # use strict; # Environment variables -my $MYSQL = $ENV{mysql} || "/usr/bin/mysql"; -my $MYSQLOPTS = $ENV{mysqlopts} || ""; -my $DATABASE = $ENV{database} || "spotweb"; -my $PERIOD = $ENV{period} || 1800; +my $MYSQL = $ENV{mysql} || "/usr/bin/mysql"; +my $MYSQLOPTS = $ENV{mysqlopts} || ""; +my $DATABASE = $ENV{database} || "spotweb"; +my $PERIOD = $ENV{period} || 1800; my $COUNTPORN = $ENV{countporn} || "yes"; @@ -49,15 +49,19 @@ my $TITLE = "Spotweb spots by Category (".($PERIOD / 60)." minute average)" # Output for config - if(defined $ARGV[0] && $ARGV[0] eq 'config') { -print < $FROMSTAMP AND category = $_[0]$_[1];"`; $spots =~ /(\d+)/; print "cat".$_[0].".value ".$1."\n"; -} \ No newline at end of file +}