From 1d8af71cd8a063ed26d1067464c381b90405b7db Mon Sep 17 00:00:00 2001 From: Lotfi zaouche Date: Tue, 26 May 2020 16:55:24 +0000 Subject: [PATCH] ratio update --- blockchain/parity/restapi/mode/eth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/parity/restapi/mode/eth.pm b/blockchain/parity/restapi/mode/eth.pm index 923c2f916..8a97cfbec 100644 --- a/blockchain/parity/restapi/mode/eth.pm +++ b/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,