From 970a09d1589e24bf678d0d84ad9f72182f1835ac Mon Sep 17 00:00:00 2001 From: clorch Date: Thu, 28 Jun 2012 14:32:53 +0300 Subject: [PATCH 1/2] Fixed plugins/mysql/mysql_size_all to support database names with a "-" character --- plugins/mysql/mysql_size_all | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/mysql/mysql_size_all b/plugins/mysql/mysql_size_all index f5954adc..da4a6384 100755 --- a/plugins/mysql/mysql_size_all +++ b/plugins/mysql/mysql_size_all @@ -171,9 +171,11 @@ 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; } +#!/usr/bin/perl \ No newline at end of file From 49586e2a870aa38e1739a01ca4f450dfa7f39071 Mon Sep 17 00:00:00 2001 From: Clemens Horch Date: Thu, 28 Jun 2012 13:52:59 +0200 Subject: [PATCH 2/2] Fixed stupid last line --- plugins/mysql/mysql_size_all | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/mysql/mysql_size_all b/plugins/mysql/mysql_size_all index da4a6384..e22645d2 100755 --- a/plugins/mysql/mysql_size_all +++ b/plugins/mysql/mysql_size_all @@ -177,5 +177,3 @@ sub getDBList { } return @dbs; } - -#!/usr/bin/perl \ No newline at end of file