mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Merge branch 'dev'
This commit is contained in:
commit
9409303f24
4 changed files with 18 additions and 10 deletions
|
@ -1,5 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v1.2.16 (2015-12-22)
|
||||||
|
|
||||||
|
* Fix Most Concurrent stream stat for emtpy databases
|
||||||
|
* Change logs to 50 lines by default
|
||||||
|
|
||||||
|
|
||||||
## v1.2.15 (2015-12-20)
|
## v1.2.15 (2015-12-20)
|
||||||
|
|
||||||
* Fix navbar covering current activity on smaller screens.
|
* Fix navbar covering current activity on smaller screens.
|
||||||
|
|
|
@ -4,7 +4,7 @@ var log_table_options = {
|
||||||
"processing": false,
|
"processing": false,
|
||||||
"pagingType": "bootstrap",
|
"pagingType": "bootstrap",
|
||||||
"order": [ 0, 'desc'],
|
"order": [ 0, 'desc'],
|
||||||
"pageLength": 10,
|
"pageLength": 50,
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search":"Search: ",
|
"search":"Search: ",
|
||||||
|
|
|
@ -587,23 +587,25 @@ class DataFactory(object):
|
||||||
times = sorted(times, key=lambda k: k['time'])
|
times = sorted(times, key=lambda k: k['time'])
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
|
last_count = 0
|
||||||
last_start = 0
|
last_start = 0
|
||||||
most_concurrent = {'count': count}
|
most_concurrent = []
|
||||||
|
|
||||||
for d in times:
|
for d in times:
|
||||||
if d['count'] == 1:
|
if d['count'] == 1:
|
||||||
count += d['count']
|
count += d['count']
|
||||||
if count >= most_concurrent['count']:
|
if count >= last_count:
|
||||||
last_start = d['time']
|
last_start = d['time']
|
||||||
else:
|
else:
|
||||||
if count >= most_concurrent['count']:
|
if count >= last_count:
|
||||||
most_concurrent = {'count': count,
|
last_count = count
|
||||||
|
most_concurrent = [{'count': count,
|
||||||
'started': last_start[:-1],
|
'started': last_start[:-1],
|
||||||
'stopped': d['time'][:-1]}
|
'stopped': d['time'][:-1]}]
|
||||||
count += d['count']
|
count += d['count']
|
||||||
|
|
||||||
home_stats.append({'stat_id': stat,
|
home_stats.append({'stat_id': stat,
|
||||||
'rows': [most_concurrent]})
|
'rows': most_concurrent})
|
||||||
|
|
||||||
return home_stats
|
return home_stats
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
PLEXPY_VERSION = "master"
|
PLEXPY_VERSION = "master"
|
||||||
PLEXPY_RELEASE_VERSION = "1.2.15"
|
PLEXPY_RELEASE_VERSION = "1.2.16"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue