From 41567ac160ee78f7bf9d24cb85a59d0ffaef2f1a Mon Sep 17 00:00:00 2001 From: ncoelho Date: Wed, 17 Feb 2021 14:57:01 +0100 Subject: [PATCH] local and remote --- controllers/website.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/website.js b/controllers/website.js index 851a3f4..7156236 100644 --- a/controllers/website.js +++ b/controllers/website.js @@ -29,8 +29,8 @@ function updateLightning() { let divider = 5242870; let ascii_length1 = channel.local_balance / divider; let ascii_length2 = channel.remote_balance / divider; - channel.local += (Math.round(ascii_length1)); - channel.remote += (Math.round(ascii_length2)); + channel.local = (Math.round(ascii_length1)); + channel.remote = (Math.round(ascii_length2)); channel.capacity_btc = channel.capacity / 100000000; channel.name = pubkey2name[channel.remote_pubkey]; if (channel.name) {