]> git.pld-linux.org Git - packages/nagios-plugins.git/blame - nagios-plugins-check_disk_smb-zero-cap.patch
fix check_file_age utils.pm locate
[packages/nagios-plugins.git] / nagios-plugins-check_disk_smb-zero-cap.patch
CommitLineData
0cf0f353
ER
1--- nagios-plugins-1.4.16/plugins-scripts/check_disk_smb.pl~ 2012-06-27 20:32:47.000000000 +0300
2+++ nagios-plugins-1.4.16/plugins-scripts/check_disk_smb.pl 2012-12-06 16:42:57.696786740 +0200
3@@ -209,7 +209,8 @@
4 my ($total_bytes) = $1 * $2;
5 my ($occupied_bytes) = $1 * $2 - $avail_bytes;
6 my ($avail) = $avail_bytes/1024;
918eaf2b
JR
7- my ($capper) = int(($3/$1)*100);
8+ my ($capper);
9+ if ($1!=0) { $capper = int(($3/$1)*100) } else { $capper=100 };
10 my ($mountpt) = "\\\\$host\\$share";
11
0cf0f353 12 # TODO : why is the kB the standard unit for args ?
This page took 0.054732 seconds and 4 git commands to generate.