Skip to content

Commit

Permalink
Let call percent take int calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskiil committed Nov 24, 2024
1 parent 68a333b commit 0a8f2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bifrost_chewbbaca/datadump.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def call_percent(calls):
return round(
len([x for x in calls if x.isdigit() or x.startswith("INF")])
len([x for x in calls if isinstance(x,int) or x.isdigit() or x.startswith("INF")])
/ len(calls)
* 100,
2,
Expand Down

0 comments on commit 0a8f2fb

Please sign in to comment.