Skip to content

Commit

Permalink
Update utils.py (sanderland#385)
Browse files Browse the repository at this point in the history
Fix using wrong SI-suffix for >=1M visits
  • Loading branch information
tegularius authored Mar 8, 2021
1 parent 149f009 commit 3e8bf5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion katrain/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def format_visits(n):
return f"{n/1000:.1f}k"
if n < 1e6:
return f"{n/1000:.0f}k"
return f"{n/1e6:.0f}k"
return f"{n/1e6:.0f}M"


def json_truncate_arrays(data, lim=20):
Expand Down

0 comments on commit 3e8bf5f

Please sign in to comment.