From f64a209e96c69a0d6a64a392238f98f8db8811a7 Mon Sep 17 00:00:00 2001 From: Jorge Miguel Lobo Escalona Date: Tue, 2 Jul 2024 18:20:42 +0200 Subject: [PATCH] B OpenNebula/One#6637: fix vms graphs (#3137) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tino Vázquez (cherry picked from commit cbb26cff6dbd49cfe3df62b4ead3da34a3b078db) --- src/sunstone/public/app/utils/graphs.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/sunstone/public/app/utils/graphs.js b/src/sunstone/public/app/utils/graphs.js index 2854924037..d8db8d399b 100644 --- a/src/sunstone/public/app/utils/graphs.js +++ b/src/sunstone/public/app/utils/graphs.js @@ -27,12 +27,6 @@ define(function(require) { var Humanize = require('utils/humanize'); - /* - VARIABLES - */ - - var currentGraph = undefined; - /* CONSTRUCTOR */ @@ -128,10 +122,7 @@ define(function(require) { //options.xaxis.zoomRange = false; options.yaxis.panRange = false; if (series.length > 0) { - currentGraph && currentGraph.shutdown(); - info.div_graph.removeData('plot').empty(); - - currentGraph = $.plot(info.div_graph, series, options); + $.plot(info.div_graph, series, options); }; }