From 36ae5c5f4ed2d17970ad89b7d7cf9dd58bf9a989 Mon Sep 17 00:00:00 2001 From: ncoelho Date: Wed, 17 Feb 2021 15:27:11 +0100 Subject: [PATCH] print --- controllers/website.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {