diff options
Diffstat (limited to 'plugins-scripts/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index 9899226..4e46397 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl | |||
@@ -212,7 +212,8 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) { | |||
212 | my ($total_bytes) = $1 * $2; | 212 | my ($total_bytes) = $1 * $2; |
213 | my ($occupied_bytes) = $1 * $2 - $avail_bytes; | 213 | my ($occupied_bytes) = $1 * $2 - $avail_bytes; |
214 | my ($avail) = $avail_bytes/1024; | 214 | my ($avail) = $avail_bytes/1024; |
215 | my ($capper) = int(($3/$1)*100); | 215 | my ($capper); |
216 | if ($1!=0) { $capper = int(($3/$1)*100) } else { $capper=100 }; | ||
216 | my ($mountpt) = "\\\\$host\\$share"; | 217 | my ($mountpt) = "\\\\$host\\$share"; |
217 | 218 | ||
218 | # TODO : why is the kB the standard unit for args ? | 219 | # TODO : why is the kB the standard unit for args ? |