Skip to content

Commit

Permalink
Fix graph command to work with new format (ordinals#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Nov 2, 2022
1 parent a3497f9 commit 2336220
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/graph
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class Block:
transactions: int

pat = re.compile(
'''Block (?P<height>[0-9]+).*with (?P<transactions>[0-9]+) transactions.*
.*Wrote (?P<ranges>[0-9]+) ordinal ranges in (?P<time>[0-9]+)ms'''
'''Block (?P<height>[0-9]+) at.*with (?P<transactions>[0-9]+) transactions.*
.*Wrote (?P<ranges>[0-9]+) ordinal ranges from .* outputs in (?P<time>[0-9]+) ms'''
)

blocks = [
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ download-log unit='ord' host='ordinals.com':
ssh root@{{host}} 'mkdir -p tmp && journalctl -u {{unit}} > tmp/{{unit}}.log'
rsync --progress root@{{host}}:tmp/{{unit}}.log tmp/{{unit}}.log

graph:
./bin/graph ord.log
graph log:
./bin/graph {{log}}

flamegraph:
CARGO_PROFILE_RELEASE_DEBUG=true sudo cargo flamegraph -- index
Expand Down

0 comments on commit 2336220

Please sign in to comment.