gluon-status-page: fix handling of interface names containing dots

This commit is contained in:
Matthias Schiffer 2016-01-08 14:54:30 +01:00
parent c69587fba4
commit 0880159eb5
1 changed files with 9 additions and 2 deletions

View File

@ -225,6 +225,12 @@ function (Helper, SignalGraph, Signal) {
return !(a < b || a > b)
}
function getter(k) {
return function(obj) {
return obj[k]
}
}
return function (nodeInfo, stream, mgmtBus) {
var stopStream, div
@ -252,9 +258,10 @@ function (Helper, SignalGraph, Signal) {
remove.forEach(function (d) { div.removeChild(d) })
for (var k in d)
for (var k in d) {
if (!(k in have))
new Interface(div, nodeInfo, k, stream.map("." + k), mgmtBus)
new Interface(div, nodeInfo, k, stream.map(getter(k)), mgmtBus)
}
}
}