mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -8,7 +8,7 @@
|
|||
# Original idea : smeerbartje (http://gathering.tweakers.net/forum/myreact/190949)
|
||||
# slommer (http://gathering.tweakers.net/forum/myreact/353335)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
@ -68,7 +68,7 @@ EOC
|
|||
|
||||
# Spot count
|
||||
my $spots = `$MYSQL $MYSQLOPTS -e 'SELECT count(*) as spots FROM $DATABASE.spots WHERE stamp > $FROMSTAMP;'`;
|
||||
$spots =~ /(\d+)/;
|
||||
$spots =~ /(\d+)/;
|
||||
print "spots.value ".$1."\n";
|
||||
|
||||
# Downloaded
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# Spotweb : http://github.com/spotweb/spotweb
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
@ -69,13 +69,13 @@ EOC
|
|||
|
||||
|
||||
# Output of values. We just call a subroutine here to prevent much duplicate code
|
||||
if($COUNTPORN eq 'yes') {
|
||||
if($COUNTPORN eq 'yes') {
|
||||
&print_value(0);
|
||||
}
|
||||
else {
|
||||
else {
|
||||
# 11-04-2011 - New pr0n filters
|
||||
# &print_value(0, " AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%'");
|
||||
&print_value(0, " AND subcatz NOT LIKE '%4%' AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%' AND subcatd NOT LIKE '%72%' AND subcatd NOT LIKE '%73%' AND subcatd NOT LIKE '%74%' AND subcatd NOT LIKE '%75%' AND subcatd NOT LIKE '%76%' AND subcatd NOT LIKE '%77%' AND subcatd NOT LIKE '%78%' AND subcatd NOT LIKE '%79%' AND subcatd NOT LIKE '%80%' AND subcatd NOT LIKE '%81%' AND subcatd NOT LIKE '%82%' AND subcatd NOT LIKE '%83%' AND subcatd NOT LIKE '%84%' AND subcatd NOT LIKE '%85%' AND subcatd NOT LIKE '%86%' AND subcatd NOT LIKE '%87%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%89%'");
|
||||
&print_value(0, " AND subcatz NOT LIKE '%4%' AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%' AND subcatd NOT LIKE '%72%' AND subcatd NOT LIKE '%73%' AND subcatd NOT LIKE '%74%' AND subcatd NOT LIKE '%75%' AND subcatd NOT LIKE '%76%' AND subcatd NOT LIKE '%77%' AND subcatd NOT LIKE '%78%' AND subcatd NOT LIKE '%79%' AND subcatd NOT LIKE '%80%' AND subcatd NOT LIKE '%81%' AND subcatd NOT LIKE '%82%' AND subcatd NOT LIKE '%83%' AND subcatd NOT LIKE '%84%' AND subcatd NOT LIKE '%85%' AND subcatd NOT LIKE '%86%' AND subcatd NOT LIKE '%87%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%89%'");
|
||||
}
|
||||
&print_value(1);
|
||||
&print_value(2);
|
||||
|
@ -85,6 +85,6 @@ else {
|
|||
# Subroutine to print the values
|
||||
sub print_value {
|
||||
my $spots = `$MYSQL $MYSQLOPTS -e "SELECT count(*) as spots FROM $DATABASE.spots WHERE stamp > $FROMSTAMP AND category = $_[0]$_[1];"`;
|
||||
$spots =~ /(\d+)/;
|
||||
print "cat".$_[0].".value ".$1."\n";
|
||||
$spots =~ /(\d+)/;
|
||||
print "cat".$_[0].".value ".$1."\n";
|
||||
}
|
||||
|
|
|
@ -62,10 +62,10 @@ exit 0;
|
|||
|
||||
|
||||
if($COUNTPORN eq 'yes') { &print_value(0); }
|
||||
else {
|
||||
else {
|
||||
# 11-04-2011 - Added the new pr0n filters
|
||||
# &print_value(0, " AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%'");
|
||||
&print_value(0, " AND (subcatz IS NULL OR subcatz NOT LIKE '%z4%') AND subcatd NOT LIKE '%d23%' AND subcatd NOT LIKE '%d24%' AND subcatd NOT LIKE '%d25%' AND subcatd NOT LIKE '%d26%' AND subcatd NOT LIKE '%d72%' AND subcatd NOT LIKE '%d73%' AND subcatd NOT LIKE '%d74%' AND subcatd NOT LIKE '%d75%' AND subcatd NOT LIKE '%d76%' AND subcatd NOT LIKE '%d77%' AND subcatd NOT LIKE '%d78%' AND subcatd NOT LIKE '%d79%' AND subcatd NOT LIKE '%d80%' AND subcatd NOT LIKE '%d81%' AND subcatd NOT LIKE '%d82%' AND subcatd NOT LIKE '%d83%' AND subcatd NOT LIKE '%d84%' AND subcatd NOT LIKE '%d85%' AND subcatd NOT LIKE '%d86%' AND subcatd NOT LIKE '%d87%' AND subcatd NOT LIKE '%d88%' AND subcatd NOT LIKE '%d88%' AND subcatd NOT LIKE '%d89%'");
|
||||
# &print_value(0, " AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%'");
|
||||
&print_value(0, " AND (subcatz IS NULL OR subcatz NOT LIKE '%z4%') AND subcatd NOT LIKE '%d23%' AND subcatd NOT LIKE '%d24%' AND subcatd NOT LIKE '%d25%' AND subcatd NOT LIKE '%d26%' AND subcatd NOT LIKE '%d72%' AND subcatd NOT LIKE '%d73%' AND subcatd NOT LIKE '%d74%' AND subcatd NOT LIKE '%d75%' AND subcatd NOT LIKE '%d76%' AND subcatd NOT LIKE '%d77%' AND subcatd NOT LIKE '%d78%' AND subcatd NOT LIKE '%d79%' AND subcatd NOT LIKE '%d80%' AND subcatd NOT LIKE '%d81%' AND subcatd NOT LIKE '%d82%' AND subcatd NOT LIKE '%d83%' AND subcatd NOT LIKE '%d84%' AND subcatd NOT LIKE '%d85%' AND subcatd NOT LIKE '%d86%' AND subcatd NOT LIKE '%d87%' AND subcatd NOT LIKE '%d88%' AND subcatd NOT LIKE '%d88%' AND subcatd NOT LIKE '%d89%'");
|
||||
}
|
||||
&print_value(1);
|
||||
&print_value(2);
|
||||
|
@ -73,6 +73,6 @@ else {
|
|||
|
||||
sub print_value {
|
||||
my $spots = `$MYSQL $MYSQLOPTS -e "SELECT count(*) as spots FROM $DATABASE.spots WHERE category = $_[0]$_[1];"`;
|
||||
$spots =~ /(\d+)/;
|
||||
print "cat".$_[0].".value ".$1."\n";
|
||||
$spots =~ /(\d+)/;
|
||||
print "cat".$_[0].".value ".$1."\n";
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# Spotweb : http://github.com/spotweb/spotweb
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
@ -68,13 +68,13 @@ EOC
|
|||
}
|
||||
|
||||
# Output of values. We just call a subroutine here to prevent much duplicate code
|
||||
if($COUNTPORN eq 'yes') {
|
||||
if($COUNTPORN eq 'yes') {
|
||||
&print_value(0);
|
||||
}
|
||||
else {
|
||||
else {
|
||||
# 11-04-2011 - New pr0n filters
|
||||
# &print_value(0, " AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%'");
|
||||
&print_value(0, " AND (subcatz IS NULL OR subcatz NOT LIKE '%4%') AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%' AND subcatd NOT LIKE '%72%' AND subcatd NOT LIKE '%73%' AND subcatd NOT LIKE '%74%' AND subcatd NOT LIKE '%75%' AND subcatd NOT LIKE '%76%' AND subcatd NOT LIKE '%77%' AND subcatd NOT LIKE '%78%' AND subcatd NOT LIKE '%79%' AND subcatd NOT LIKE '%80%' AND subcatd NOT LIKE '%81%' AND subcatd NOT LIKE '%82%' AND subcatd NOT LIKE '%83%' AND subcatd NOT LIKE '%84%' AND subcatd NOT LIKE '%85%' AND subcatd NOT LIKE '%86%' AND subcatd NOT LIKE '%87%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%89%'");
|
||||
&print_value(0, " AND (subcatz IS NULL OR subcatz NOT LIKE '%4%') AND subcatd NOT LIKE '%23%' AND subcatd NOT LIKE '%24%' AND subcatd NOT LIKE '%25%' AND subcatd NOT LIKE '%26%' AND subcatd NOT LIKE '%72%' AND subcatd NOT LIKE '%73%' AND subcatd NOT LIKE '%74%' AND subcatd NOT LIKE '%75%' AND subcatd NOT LIKE '%76%' AND subcatd NOT LIKE '%77%' AND subcatd NOT LIKE '%78%' AND subcatd NOT LIKE '%79%' AND subcatd NOT LIKE '%80%' AND subcatd NOT LIKE '%81%' AND subcatd NOT LIKE '%82%' AND subcatd NOT LIKE '%83%' AND subcatd NOT LIKE '%84%' AND subcatd NOT LIKE '%85%' AND subcatd NOT LIKE '%86%' AND subcatd NOT LIKE '%87%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%88%' AND subcatd NOT LIKE '%89%'");
|
||||
}
|
||||
&print_value(1);
|
||||
&print_value(2);
|
||||
|
@ -89,6 +89,6 @@ sub print_value {
|
|||
print "cat".$_[0].".value 0\n";
|
||||
}
|
||||
else {
|
||||
print "cat".$_[0].".value ".$1."\n";
|
||||
print "cat".$_[0].".value ".$1."\n";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ EOC
|
|||
|
||||
# Spot count
|
||||
my $spots = `$MYSQL $MYSQLOPTS -e 'SELECT count(*) as spots FROM $DATABASE.spots;'`;
|
||||
$spots =~ /(\d+)/;
|
||||
$spots =~ /(\d+)/;
|
||||
print "spots.value ".$1."\n";
|
||||
|
||||
if($SPOTSFULL eq 'yes') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue