mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Percent helper round before trunc
This commit is contained in:
parent
2b395a7ad9
commit
8982ae83ac
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ def get_percent(value1, value2):
|
|||
else:
|
||||
percent = 0
|
||||
|
||||
return math.trunc(percent)
|
||||
return math.trunc(round(percent, 0))
|
||||
|
||||
|
||||
def hex_to_int(hex):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue