From 77d5437ca3fa0cf88c9f424401ca8aa041b5dedb Mon Sep 17 00:00:00 2001 From: Thibault Debatty <thibault.debatty@gmail.com> Date: Sat, 22 Dec 2018 12:56:44 +0100 Subject: [PATCH] show graphic --- web/app/Sensor/Ifconfig.php | 2 +- web/public/js/sensor.ifconfig.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/Sensor/Ifconfig.php b/web/app/Sensor/Ifconfig.php index 6ac8493..05835e5 100644 --- a/web/app/Sensor/Ifconfig.php +++ b/web/app/Sensor/Ifconfig.php @@ -56,7 +56,7 @@ class Ifconfig extends AbstractSensor { } } - return $dataset; + array_values($dataset); } diff --git a/web/public/js/sensor.ifconfig.js b/web/public/js/sensor.ifconfig.js index 43d5677..d973208 100644 --- a/web/public/js/sensor.ifconfig.js +++ b/web/public/js/sensor.ifconfig.js @@ -44,6 +44,8 @@ window.monitorIfconfigChart = function(element) { + window.monitorServerID + "/" + window.monitorServerToken + "/ifconfig"; $.getJSON(meminfo_url, function( data ) { + console.log(data); + data.foreach(function(dataset){ var new_dataset = { label: dataset.name, -- GitLab