mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -171,9 +171,9 @@ sub getDBList {
|
|||
my @dbs;
|
||||
foreach my $f (glob("/var/lib/mysql/*")) {
|
||||
if (-d $f) {
|
||||
$f =~ s/\@002d/-/g;
|
||||
$f =~ s!.*/!!;
|
||||
@dbs[$#dbs+1]=$f };
|
||||
}
|
||||
return @dbs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue