mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #138 from clorch/master
Fixed mysql_size_all to support database names with a "-" character
This commit is contained in:
commit
f4324f213d
@ -171,9 +171,9 @@ sub getDBList {
|
|||||||
my @dbs;
|
my @dbs;
|
||||||
foreach my $f (glob("/var/lib/mysql/*")) {
|
foreach my $f (glob("/var/lib/mysql/*")) {
|
||||||
if (-d $f) {
|
if (-d $f) {
|
||||||
|
$f =~ s/\@002d/-/g;
|
||||||
$f =~ s!.*/!!;
|
$f =~ s!.*/!!;
|
||||||
@dbs[$#dbs+1]=$f };
|
@dbs[$#dbs+1]=$f };
|
||||||
}
|
}
|
||||||
return @dbs;
|
return @dbs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user