mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Add total bandwidth to activity header
This commit is contained in:
parent
5a14c229a1
commit
bf7e432c0c
3 changed files with 31 additions and 13 deletions
|
@ -4434,7 +4434,8 @@ class WebInterface(object):
|
|||
|
||||
counts = {'stream_count_direct_play': 0,
|
||||
'stream_count_direct_stream': 0,
|
||||
'stream_count_transcode': 0}
|
||||
'stream_count_transcode': 0,
|
||||
'total_bandwidth': 0}
|
||||
|
||||
for s in result['sessions']:
|
||||
if s['transcode_decision'] == 'transcode':
|
||||
|
@ -4444,6 +4445,8 @@ class WebInterface(object):
|
|||
else:
|
||||
counts['stream_count_direct_play'] += 1
|
||||
|
||||
counts['total_bandwidth'] += helpers.cast_to_int(s['bandwidth'])
|
||||
|
||||
result.update(counts)
|
||||
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue