mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix spelling mistakes in variable names
Thanks, codespell!
This commit is contained in:
parent
8713eb3722
commit
f776b7e04f
5 changed files with 19 additions and 19 deletions
|
@ -48,7 +48,7 @@ my $db = $2;
|
|||
my $MYSQLADMIN = $ENV{mysqladmin} || "mysql";
|
||||
|
||||
my %WANTED = ( "Index" => "index",
|
||||
"Datas" => "datas",
|
||||
"Data" => "data",
|
||||
);
|
||||
|
||||
my $arg = shift();
|
||||
|
@ -65,7 +65,7 @@ if ($arg eq 'config') {
|
|||
exit;
|
||||
}
|
||||
|
||||
my $datas = 0;
|
||||
my $data_count = 0;
|
||||
my $indexes = 0;
|
||||
my (@infos,$info,$i_data,$i_index);
|
||||
|
||||
|
@ -99,12 +99,12 @@ open(SERVICE, "$COMMAND |")
|
|||
|
||||
while (<SERVICE>) {
|
||||
(m/(\d+).*?(\d+(?:\.\d+)?)/);
|
||||
$datas += $1;
|
||||
$data_count += $1;
|
||||
$indexes += $2;
|
||||
}
|
||||
close(SERVICE);
|
||||
|
||||
print("datas.value $datas\n");
|
||||
print("data.value $data_count\n");
|
||||
print("index.value $indexes\n");
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue