From a58933c4cf7afb02c76263ecbb5328c97be8790f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 25 Oct 2014 17:18:12 +0200 Subject: viz: fixed json data --- src/viz/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/viz/index.js b/src/viz/index.js index 31b6880..4eed261 100644 --- a/src/viz/index.js +++ b/src/viz/index.js @@ -96,7 +96,7 @@ function changeSetting(name, selobj) { function graphS5Status(data) { sidseen=[]; - $.each(data, function(index, stream) { + $.each(data['data'], function(index, stream) { var sid = stream["streamer-id"].format + '-' + stream["streamer-id"].quality; sidseen.push(sid); lastfrom = "from="+stream["start-time"]; @@ -111,7 +111,7 @@ function graphS5Status(data) { } else if (! stuff_to_display[key]) { stuff_to_display['*'](sid, key, data[key], jsdate); } - } + } }); } -- cgit v1.2.3