From e8720e6ee70a3230dde8ff66f15c0171f7307988 Mon Sep 17 00:00:00 2001 From: Lotfi zaouche Date: Tue, 26 May 2020 16:55:24 +0000 Subject: [PATCH] ratio update --- centreon-plugins/blockchain/parity/restapi/mode/eth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/blockchain/parity/restapi/mode/eth.pm b/centreon-plugins/blockchain/parity/restapi/mode/eth.pm index 923c2f916..8a97cfbec 100644 --- a/centreon-plugins/blockchain/parity/restapi/mode/eth.pm +++ b/centreon-plugins/blockchain/parity/restapi/mode/eth.pm @@ -208,7 +208,7 @@ sub manage_selection { gas_used => hex(@{$result}[5]->{result}->{gasUsed}), gas_limit => hex(@{$result}[5]->{result}->{gasLimit}) }; - my $calculated_block_usage = hex(@{$result}[5]->{result}->{gasUsed}) / hex(@{$result}[5]->{result}->{gasLimit}); + my $calculated_block_usage = hex(@{$result}[5]->{result}->{gasUsed}) / hex(@{$result}[5]->{result}->{gasLimit}) * 100; $self->{block} = { block_size => hex(@{$result}[5]->{result}->{size}), block_gas => hex(@{$result}[5]->{result}->{gasUsed}), block_usage => $calculated_block_usage,