Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
fixed negative allocation rate (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsds143 authored May 19, 2021
1 parent f2b6ae5 commit dd29ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysper/ttop.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TTopParser:
thread_match = re.compile(r" +thread count: (?P<thread_count>[0-9]+)")
# heap allocation rate 435mb/s
heap_match = re.compile(
r" +heap allocation rate (?P<heap_rate>[0-9]+)(?P<heap_unit>[m|k|g]?b)/s"
r" +heap allocation rate -?(?P<heap_rate>[0-9]+)(?P<heap_unit>(mb|kb|gb|b))/s"
)
# [001900] user= 4.87% sys= 5.52% alloc= 2172kb/s - RMI TCP Connection(184)-127.0.0.1
tinfo_match = re.compile(
Expand Down

0 comments on commit dd29ed8

Please sign in to comment.