Skip to content

Commit

Permalink
represent bp in percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh committed Dec 20, 2024
1 parent 50cb7c9 commit b02cf65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dashboard/components/FragmentGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,11 @@ export default function FragmentGraph({
d3.selectAll(".tooltip").remove()

// Create new tooltip
const bpValue = backPressures?.get(`${d.source}_${d.target}`)
const tooltipText = `<b>Fragment ${d.source}${
d.target
}</b><br>Backpressure: ${
backPressures?.get(`${d.source}_${d.target}`) ?? "N/A"
bpValue != null ? `${(bpValue * 100).toFixed(2)}%` : "N/A"
}`
d3.select("body")
.append("div")
Expand Down
3 changes: 2 additions & 1 deletion dashboard/components/RelationGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ export default function RelationGraph({
d3.selectAll(".tooltip").remove()

// Create new tooltip
const bpValue = backPressures?.get(`${d.source}_${d.target}`)
const tooltipText = `<b>Relation ${d.source}${
d.target
}</b><br>Backpressure: ${
backPressures?.get(`${d.source}_${d.target}`) ?? "N/A"
bpValue != null ? `${(bpValue * 100).toFixed(2)}%` : "N/A"
}`
d3.select("body")
.append("div")
Expand Down

0 comments on commit b02cf65

Please sign in to comment.