Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Fix node sla metirc unit problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hanahmily committed Dec 2, 2018
1 parent ac4a90a commit f18784e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Topology/AppTopology.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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();
Expand Down

0 comments on commit f18784e

Please sign in to comment.