Update utils.py (#385)

Fix using wrong SI-suffix for >=1M visits
This commit is contained in:
tegularius authored and GitHub committed 2021-03-08 09:06:31 +01:00
1 parent 149f009ff3
commit 3e8bf5f90c
1 file changed
+1 -1
+1 -1
View File
@@ -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):