Skip to content

Commit

Permalink
Correct units for memory metrics (#29)
Browse files Browse the repository at this point in the history
Fixes #28
  • Loading branch information
sparrowt authored Nov 16, 2023
1 parent 8444d17 commit 44f1c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions austin/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
ThreadName = str
ProcessId = int
MicroSeconds = int
KiloBytes = int
Bytes = int


# ---- Exceptions ----
Expand Down Expand Up @@ -106,7 +106,7 @@ class Metric:
"""Austin metrics."""

type: MetricType
value: Union[MicroSeconds, KiloBytes] = 0
value: Union[MicroSeconds, Bytes] = 0

def __add__(self, other: "Metric") -> "Metric":
"""Add metrics together (algebraically)."""
Expand Down

0 comments on commit 44f1c4a

Please sign in to comment.