Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues in stat_latency #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/stat_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def analyze(self):
table.add_stat("by_block_ratio", "%.2f", self.agg.stat_tx_ratio())

#colomn: shows the time a transaction from receiving to packing for every node, be aware of the transactions can be packed multiple times.
#Therefore there may be mutiple values for the same transaction.
table.add_stat("Tx wait to be packed elasped time", "%.2f", self.agg.stat_tx_wait_to_be_packed())
#Therefore there may be multiple values for the same transaction.
table.add_stat("Tx wait to be packed elapsed time", "%.2f", self.agg.stat_tx_wait_to_be_packed())

block_txs_list = []
block_size_list = []
Expand Down
3 changes: 3 additions & 0 deletions scripts/stat_latency_map_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def __init__(self, data:list, avg_ndigits=2, sort=True):
self.__dict__[p.name] = value

def get(self, p:Percentile, data_format:str=None):
if p.name not in self.__dict__:
return 0

result = self.__dict__[p.name]

if data_format is not None:
Expand Down