You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2018/11/02 20:23:16 UTC
qpid-dispatch git commit: DISPATCH-1161 Fix traffic animation on
console's topology page for edge routers
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 5c1743748 -> ca22c9d13
DISPATCH-1161 Fix traffic animation on console's topology page for edge routers
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/ca22c9d1
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/ca22c9d1
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/ca22c9d1
Branch: refs/heads/master
Commit: ca22c9d134221f79917b0413acfa09862a6ef0ce
Parents: 5c17437
Author: Ernest Allen <ea...@redhat.com>
Authored: Fri Nov 2 16:23:02 2018 -0400
Committer: Ernest Allen <ea...@redhat.com>
Committed: Fri Nov 2 16:23:02 2018 -0400
----------------------------------------------------------------------
console/stand-alone/plugin/js/topology/traffic.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/ca22c9d1/console/stand-alone/plugin/js/topology/traffic.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/topology/traffic.js b/console/stand-alone/plugin/js/topology/traffic.js
index 10f263f..73e30bd 100644
--- a/console/stand-alone/plugin/js/topology/traffic.js
+++ b/console/stand-alone/plugin/js/topology/traffic.js
@@ -419,11 +419,11 @@ class Dots extends TrafficAnimation {
let cdir = sender ? 'out' : 'in';
for (let n = 0; n < nodes.length; n++) {
let node = nodes[n];
- if (node.normals && node.key === nodes[f].key && node.cdir === cdir) {
+ if (node.normals && node.key === nodes[f].key && (node.cdir === cdir || node.cdir === 'both')) {
let key = ['', f, n].join('-');
if (!hops[key])
hops[key] = [];
- hops[key].push({ val: val, back: node.cdir === 'in', address: address });
+ hops[key].push({ val: val, back: !sender, address: address });
return;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org