mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Fix MPTCP graph
This commit is contained in:
parent
befc55a567
commit
34045b2a6d
1 changed files with 4 additions and 3 deletions
|
@ -437,6 +437,7 @@
|
|||
var toadditf = [ ];
|
||||
for (var itf in data)
|
||||
{
|
||||
//if (itf == "total") continue;
|
||||
uplineDnl[itf] = [ ];
|
||||
downlineDnl[itf]= [ ];
|
||||
uplineUpl[itf] = [ ];
|
||||
|
@ -523,7 +524,7 @@
|
|||
|
||||
for (var itf in uplineDnl)
|
||||
{
|
||||
//if (itf == "total") continue;
|
||||
if (itf == "total") continue;
|
||||
var y_rx = 0;
|
||||
var y_tx = 0;
|
||||
|
||||
|
@ -594,7 +595,7 @@
|
|||
if (typeof dntopline != "object")
|
||||
{
|
||||
dntopline = Gdn.getElementById('rx');
|
||||
dntopline.setAttributeNS(null, 'style', 'stroke:DimGray;stroke-width:1;stroke-linecap="round";fill:;fill-opacity:0;');
|
||||
dntopline.setAttributeNS(null, 'style', 'stroke:DimGray;stroke-width:0;stroke-linecap="round";fill:;fill-opacity:0;');
|
||||
/* Move line on top */
|
||||
var father = dntopline.parentNode;
|
||||
father.removeChild(dntopline);
|
||||
|
@ -603,7 +604,7 @@
|
|||
if (typeof uptopline != "object")
|
||||
{
|
||||
uptopline = Gup.getElementById('tx');
|
||||
uptopline.setAttributeNS(null, 'style', 'stroke:DimGray;stroke-width:1;stroke-linecap="round";fill:;fill-opacity:0;');
|
||||
uptopline.setAttributeNS(null, 'style', 'stroke:DimGray;stroke-width:0;stroke-linecap="round";fill:;fill-opacity:0;');
|
||||
/* Move line on top */
|
||||
var father = uptopline.parentNode;
|
||||
father.removeChild(uptopline);
|
||||
|
|
Loading…
Reference in a new issue