Skip to content

Commit

Permalink
fix: return 100 node health if health is above 95
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jul 10, 2024
1 parent a23511d commit 58ac8cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/screens/channels/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -857,5 +857,10 @@ function getNodeHealth(channels: Channel[]) {
(0.9 + averageChannelBalance * 0.1) // +10% for perfectly balanced channels
);

if (nodeHealth > 95) {
// prevent OCD
return 100;
}

return nodeHealth;
}

0 comments on commit 58ac8cb

Please sign in to comment.