1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B OpenNebula/One#6637: fix vms graphs (#3137)

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit cbb26cff6dbd49cfe3df62b4ead3da34a3b078db)
This commit is contained in:
Jorge Miguel Lobo Escalona 2024-07-02 18:20:42 +02:00 committed by Tino Vázquez
parent 9e644fa216
commit f64a209e96
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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);
};
}