updated version
c0adc80f
Hari Sekhon
committed
1 changed file
check_hadoop_datanode_blockcount.pl
/check_hadoop_datanode_blockcount.pl-2+5
/check_hadoop_datanode_blockcount.pl
Add comment 21 Tested on CentOS 5 / 6 / 7
Add comment 22 ";
Add comment 23
Add comment 24 Minus  $VERSION = "0.7.4";
Add comment 24 Plus  $VERSION = "0.7.5";
Add comment 25
Add comment 26 use strict;
Add comment 27 use warnings;
Add comment 209 }
Add comment 210 my @tmp = split("\n", $output2[1]);
Add comment 211 foreach my $line (@tmp){
Add comment 212 Minus   if(scalar split(/\s+/, $line) > 1 and $line !~ /^\s/o and $line !~ /Obsoleting Packages/o){
Add comment 212 Plus   my @line_parts = split(/\s+/, $line);
Add comment 213 Plus   if(scalar @line_parts > 1 and
Add comment 214 Plus   $line !~ /^\s/o and
Add comment 215 Plus   $line !~ /Obsoleting Packages/o){
Add comment 213 216 $number_packages += 1;
Add comment 214 217 }
Add comment 215 218 }