mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Show Gbps bandwidth
This commit is contained in:
parent
fa0b547b32
commit
f3d42e7b53
2 changed files with 9 additions and 5 deletions
|
@ -330,7 +330,9 @@ DOCUMENTATION :: END
|
|||
% if data['media_type'] != 'photo' and data['bandwidth'] != 'Unknown':
|
||||
<%
|
||||
bw = helpers.cast_to_int(data['bandwidth'])
|
||||
if bw > 1000:
|
||||
if bw > 1000000:
|
||||
bw = str(round(bw / 1000000.0, 1)) + ' Gbps'
|
||||
elif bw > 1000:
|
||||
bw = str(round(bw / 1000.0, 1)) + ' Mbps'
|
||||
else:
|
||||
bw = str(bw) + ' kbps'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue