From 9adf26e2cb27fd8ff51d51dea893ecba939e3cdc Mon Sep 17 00:00:00 2001 From: Chris Green <34572557+cgreen12@users.noreply.github.com> Date: Sun, 9 Jun 2019 08:43:47 -0400 Subject: [PATCH] Consistency ftw Signed-off-by: Chris Green <34572557+cgreen12@users.noreply.github.com> --- static/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/index.html b/static/index.html index 7f949c7..6f4f361 100644 --- a/static/index.html +++ b/static/index.html @@ -248,7 +248,7 @@ var main = function(timeout){ var edges = []; var resp = data.responses; for (let callId in resp) { - var call = resp[callId].response; + var call = resp[callId].response['podResults']; if (typeof call !== 'string'){ for (let target in call) { edges.push({ @@ -281,17 +281,17 @@ var main = function(timeout){ }) console.log(nodes); - if ('dnsCheckResponses' in data) { + if ('dnsResults' in data) { var yoffset = 0; - for (let checkedHost in data.dnsCheckResponses) { + for (let checkedHost in data.dnsResults) { dnsCheckNodes.push({ "label": checkedHost, "id": checkedHost, "x": 0, "y": 0, }); - for (let pod in data.dnsCheckResponses[checkedHost]) { - var podData = data.dnsCheckResponses[checkedHost][pod]; + for (let pod in data.dnsResults[checkedHost]) { + var podData = data.dnsResults[checkedHost][pod]; var elapsed = 0; if ('response-time-ms' in podData) { elapsed = podData['response-time-ms'];