ratio update

This commit is contained in:
Lotfi zaouche 2020-05-26 16:55:24 +00:00
parent 44d3a0fec7
commit 1d8af71cd8
1 changed files with 1 additions and 1 deletions

View File

@ -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,