You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2018/12/02 08:38:58 UTC

[incubator-skywalking-ui] branch 6.0.0/beta updated: Fix node sla metirc unit problem

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

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


The following commit(s) were added to refs/heads/6.0.0/beta by this push:
     new f18784e  Fix node sla metirc unit problem
f18784e is described below

commit f18784eecbf2ad29c6836b18e57cc3f5f9ac1d4f
Author: gaohongtao <ha...@gmail.com>
AuthorDate: Sun Dec 2 16:37:50 2018 +0800

    Fix node sla metirc unit problem
    
    Fix https://github.com/apache/incubator-skywalking/issues/1923
---
 src/components/Topology/AppTopology.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/Topology/AppTopology.js b/src/components/Topology/AppTopology.js
index 1568f69..78d65c4 100644
--- a/src/components/Topology/AppTopology.js
+++ b/src/components/Topology/AppTopology.js
@@ -104,7 +104,7 @@ export default class AppTopology extends Base {
         const colors = ["#cf1322", "#40a9ff"];
         const nodeId = node.id();
         const nodeSla = slaValues.find(_ => _.id === nodeId);
-        let sla = 100;
+        let sla = 10000;
         if (nodeSla) {
           sla = nodeSla.value;
         }
@@ -119,7 +119,7 @@ export default class AppTopology extends Base {
 
         ctx.translate(pos.x, pos.y);
 
-        const arcs = pie([100 - sla, sla]);
+        const arcs = pie([10000 - sla, sla]);
 
         arcs.forEach((d, i) => {
           ctx.beginPath();