You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/02/24 09:33:24 UTC

[incubator-skywalking-ui] branch master updated: Fix: fix bug #2276 (#235)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 949e434  Fix: fix bug #2276 (#235)
949e434 is described below

commit 949e43436a652acb213a18feda73125ae8a7c0df
Author: Allen Wang <Al...@outlook.com>
AuthorDate: Sun Feb 24 17:33:20 2019 +0800

    Fix: fix bug #2276 (#235)
---
 src/routes/Topology/Topology.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/routes/Topology/Topology.js b/src/routes/Topology/Topology.js
index 99191b3..fc4cc1d 100644
--- a/src/routes/Topology/Topology.js
+++ b/src/routes/Topology/Topology.js
@@ -136,6 +136,13 @@ export default class Topology extends PureComponent {
       return;
     }
     const latencyRange = vArray.map(_ => parseInt(_.trim(), 10)).filter(_ => !isNaN(_));
+    if(latencyRange[1] < 0) {
+      latencyRange[1] = 0;
+    }
+    if(latencyRange[0] > latencyRange[1]) {
+      const temp = latencyRange[1];
+      latencyRange[0] = temp;
+    }
     if (latencyRange.length !== 2) {
       return;
     }