Skip to content

Commit

Permalink
Fix inbound display
Browse files Browse the repository at this point in the history
  • Loading branch information
evansmj committed Dec 26, 2024
1 parent 218ce94 commit 094e7e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ function SatsFlowGraph({ satsFlowData, width }: { satsFlowData: SatsFlow, width:
.attr("x", 0)
.attr("y", (d: TagGroup) => {
let barHeight = Math.abs(yScale(d.netInflowSat) - yScale(0));
console.log("barHeight = " + barHeight + " " + d.netInflowSat);
//min barHeight should be 1.
if (d.netInflowSat < 0) {
//For negative values start at yOffsetNegative and move down
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/hooks/use-http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const useHttp = () => {

let worstTrafficRoute = "";
if (lowestForwardIndex != null) {
worstTrafficRoute = `${volumeData.forwards[lowestForwardIndex].outboundChannelSCID} -> ${volumeData.forwards[lowestForwardIndex].outboundChannelSCID}`;
worstTrafficRoute = `${volumeData.forwards[lowestForwardIndex].inboundChannelSCID} -> ${volumeData.forwards[lowestForwardIndex].outboundChannelSCID}`;
}

return {
Expand Down

0 comments on commit 094e7e8

Please sign in to comment.