From 0e85d2332f52b1fb33ed3a8cb5ebb39025db7407 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 12 Jul 2021 15:32:04 +0200 Subject: [PATCH] clean(linux/local): remove space reservation useless code (#2956) --- centreon-plugins/os/linux/local/mode/storage.pm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/centreon-plugins/os/linux/local/mode/storage.pm b/centreon-plugins/os/linux/local/mode/storage.pm index 491e493a7..41e70d30b 100644 --- a/centreon-plugins/os/linux/local/mode/storage.pm +++ b/centreon-plugins/os/linux/local/mode/storage.pm @@ -160,9 +160,6 @@ sub manage_selection { $mount !~ /$self->{option_results}->{filter_mountpoint}/); $size *= 1024; - if (defined($self->{option_results}->{space_reservation})) { - $size = int($size - ($self->{option_results}->{space_reservation} * $size / 100)); - } $self->{disks}->{$mount} = { display => $mount, fs => $fs, type => $type, total => $size, used => $used * 1024 }; } @@ -215,11 +212,6 @@ Filter filesystem type (regexp can be used). Filter filesystem (regexp can be used). -=item B<--space-reservation> - -Some filesystem has space reserved (like ext4 for root). -The value is in percent of total (Default: none). - =back =cut