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:
parent
9e644fa216
commit
f64a209e96
@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user