Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
0acf83d2
Commit
0acf83d2
authored
Oct 03, 2012
by
p4u
Browse files
Graph links which are 0 in some direction (rx or tx) are not printed
parent
7be9549f
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/bmx6-luci/files/usr/lib/lua/luci/view/bmx6/graph.htm
View file @
0acf83d2
...
...
@@ -45,10 +45,14 @@ $Id$
var
key
=
(
data
[
i
].
globalId
<
data
[
i
].
links
[
j
].
globalId
)
?
data
[
i
].
globalId
+
'
|
'
+
data
[
i
].
links
[
j
].
globalId
:
data
[
i
].
links
[
j
].
globalId
+
'
|
'
+
data
[
i
].
globalId
;
if
(
!
seen
[
key
])
var
rxRate
=
data
[
i
].
links
[
j
].
rxRate
;
var
txRate
=
data
[
i
].
links
[
j
].
txRate
;
if
(
!
seen
[
key
]
&&
rxRate
>
0
&&
txRate
>
0
)
{
g
.
addEdge
(
data
[
i
].
globalId
,
data
[
i
].
links
[
j
].
globalId
,
{
label
:
data
[
i
].
links
[
j
].
rxRate
+
'
/
'
+
data
[
i
].
links
[
j
].
txRate
,
g
.
addEdge
(
data
[
i
].
globalId
,
data
[
i
].
links
[
j
].
globalId
,
{
label
:
rxRate
+
'
/
'
+
txRate
,
directed
:
false
,
stroke
:
'
#aaaaaa
'
,
fill
:
'
#ffffff
'
,
'
label-style
'
:
{
'
font-size
'
:
10
}});
seen
[
key
]
=
true
;
...
...
@@ -75,7 +79,7 @@ $Id$
layouter
.
layout
();
renderer
.
draw
();
}
}
);
//]]>
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment