From 0c1d95d4310b8d1fdb469ef24ef4a6fbdaa68a9f Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 11 Apr 2019 10:12:46 +0200 Subject: [PATCH] Fix #1474 --- centreon-plugins/apps/vmware/connector/mode/datastoreio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/vmware/connector/mode/datastoreio.pm b/centreon-plugins/apps/vmware/connector/mode/datastoreio.pm index f6b040c27..4a422dc97 100644 --- a/centreon-plugins/apps/vmware/connector/mode/datastoreio.pm +++ b/centreon-plugins/apps/vmware/connector/mode/datastoreio.pm @@ -150,7 +150,7 @@ sub manage_selection { read => $response->{data}->{$ds_id}->{'datastore.write.average'}, write => $response->{data}->{$ds_id}->{'datastore.read.average'}, }; - $self->{global}->{read} += $response->{data}->{$ds_id}->{'datastore.write.average'} if (defined($response->{data}->{$ds_id}->{'datastore.write.average'})); + $self->{global}->{read} += $response->{data}->{$ds_id}->{'datastore.read.average'} if (defined($response->{data}->{$ds_id}->{'datastore.read.average'})); $self->{global}->{write} += $response->{data}->{$ds_id}->{'datastore.write.average'} if (defined($response->{data}->{$ds_id}->{'datastore.write.average'})); } }