Skip to content

Commit

Permalink
fix(pm4py): bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Nov 6, 2024
1 parent 74ff0c5 commit 5a3db7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pm4py/util/vis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def human_readable_stat(timedelta, stat_locale: Optional[Dict[str, str]] = None)
elif seconds > 0:
return str(seconds) + stat_locale.get("second", "s")
else:
c = int(float(timedelta*1000))
c = int(float(timedelta) * 1000)
if c > 0:
return str(c) + stat_locale.get("millisecond", "ms")
else:
return str(int(float(timedelta * 10**9))) + stat_locale.get("nanosecond", "ns")
return str(int(float(timedelta) * 10**9)) + stat_locale.get("nanosecond", "ns")


def get_arc_penwidth(arc_measure, min_arc_measure, max_arc_measure):
Expand Down

0 comments on commit 5a3db7f

Please sign in to comment.