Fixed netflow node name
Former-commit-id: 0e134e7e70546aca26178336e4ff5ba2489d55ea
This commit is contained in:
parent
4b73518804
commit
c31948b7c2
|
@ -1684,7 +1684,12 @@ class NetworkMap
|
||||||
$node[$k] = $v;
|
$node[$k] = $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
$node['style']['label'] = $node['text'];
|
if (!empty($node['text'])) {
|
||||||
|
$node['style']['label'] = $node['text'];
|
||||||
|
} else {
|
||||||
|
$node['style']['label'] = $node['name'];
|
||||||
|
}
|
||||||
|
|
||||||
$node['style']['shape'] = 'circle';
|
$node['style']['shape'] = 'circle';
|
||||||
if (isset($source_data['color'])) {
|
if (isset($source_data['color'])) {
|
||||||
$item['color'] = $source_data['color'];
|
$item['color'] = $source_data['color'];
|
||||||
|
|
Loading…
Reference in New Issue