diff --git a/controllers/website.js b/controllers/website.js index 5b9f668..eb60983 100644 --- a/controllers/website.js +++ b/controllers/website.js @@ -31,8 +31,8 @@ function updateLightning() { let ascii_length1 = channel.local_balance * divider; let ascii_length2 = channel.remote_balance * divider; channel.local = (Math.round(ascii_length1)); - channel.remote = (max - (Math.round(ascii_length2))); - channel.total = ((channel.local) +(channel.remote); + channel.remote = (max - (Math.round(ascii_length1))); + channel.total = ((channel.local) + (channel.remote); channel.capacity_btc = channel.capacity / 100000000; channel.name = pubkey2name[channel.remote_pubkey]; if (channel.name) {