Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7BED4200C32 for ; Wed, 22 Feb 2017 20:23:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7AAF5160B49; Wed, 22 Feb 2017 19:23:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ECDA0160B62 for ; Wed, 22 Feb 2017 20:23:29 +0100 (CET) Received: (qmail 17834 invoked by uid 500); 22 Feb 2017 19:23:29 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 17804 invoked by uid 99); 22 Feb 2017 19:23:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 19:23:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 00741DFF12; Wed, 22 Feb 2017 19:23:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ctubbsii@apache.org To: commits@accumulo.apache.org Date: Wed, 22 Feb 2017 19:23:29 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/6] accumulo git commit: ACCUMULO-4590 Use JSON.parse instead of eval archived-at: Wed, 22 Feb 2017 19:23:30 -0000 ACCUMULO-4590 Use JSON.parse instead of eval Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/c3a0d1d5 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/c3a0d1d5 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/c3a0d1d5 Branch: refs/heads/1.8 Commit: c3a0d1d5e2f810ebcda346977009ab0fd1bd34f7 Parents: a9bf10f Author: Christopher Tubbs Authored: Wed Feb 22 14:19:57 2017 -0500 Committer: Christopher Tubbs Committed: Wed Feb 22 14:19:57 2017 -0500 ---------------------------------------------------------------------- server/monitor/src/main/resources/web/vis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/c3a0d1d5/server/monitor/src/main/resources/web/vis.js ---------------------------------------------------------------------- diff --git a/server/monitor/src/main/resources/web/vis.js b/server/monitor/src/main/resources/web/vis.js index c0f8b3f..8f2bc20 100644 --- a/server/monitor/src/main/resources/web/vis.js +++ b/server/monitor/src/main/resources/web/vis.js @@ -82,7 +82,7 @@ function handleNewData() { xmlReturned = true; return; } - var newstats = eval('(' + xmlhttp.responseText + ')'); + var newstats = JSON.parse(xmlhttp.responseText); for (var i in newstats.servers) { for (var s in statNames) { if (statNames[s])