From 54bdbbeb5e6a2000581179fc5600c4d9d4d82551 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 18 Feb 2020 17:22:35 +0100 Subject: [PATCH] fix free space --- apps/vmware/connector/mode/datastoreusage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/vmware/connector/mode/datastoreusage.pm b/apps/vmware/connector/mode/datastoreusage.pm index 148a23cf2..ab9950896 100644 --- a/apps/vmware/connector/mode/datastoreusage.pm +++ b/apps/vmware/connector/mode/datastoreusage.pm @@ -45,7 +45,7 @@ sub custom_usage_output { my ($total_size_value, $total_size_unit) = $self->{perfdata}->change_bytes(value => $self->{result_values}->{total_space_absolute}); my ($total_used_value, $total_used_unit) = $self->{perfdata}->change_bytes(value => $self->{result_values}->{used_space_absolute}); - my ($total_free_value, $total_free_unit) = $self->{perfdata}->change_bytes(value => $self->{result_values}->{used_space_absolute}); + my ($total_free_value, $total_free_unit) = $self->{perfdata}->change_bytes(value => $self->{result_values}->{free_space_absolute}); my $msg = sprintf( 'Usage Total: %s Used: %s (%.2f%%) Free: %s (%.2f%%)', $total_size_value . " " . $total_size_unit,