From 325015d95b36c28ba88d785aac8da5cd0965da4c Mon Sep 17 00:00:00 2001 From: ncoelho Date: Wed, 17 Feb 2021 11:53:37 +0100 Subject: [PATCH] Revert "try channel values" This reverts commit 11655e8aba22b7ba1ed5447939f78818ea006668. --- controllers/website.js | 6 ++++-- templates/index.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/controllers/website.js b/controllers/website.js index 851a3f4..a0a22c2 100644 --- a/controllers/website.js +++ b/controllers/website.js @@ -29,8 +29,10 @@ 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.ascii = '['; + channel.ascii += '-'.repeat(Math.round(ascii_length1)); + channel.ascii += '/' + '-'.repeat(Math.round(ascii_length2)); + channel.ascii += ']'; channel.capacity_btc = channel.capacity / 100000000; channel.name = pubkey2name[channel.remote_pubkey]; if (channel.name) { diff --git a/templates/index.html b/templates/index.html index 4cd7fe0..af23469 100644 --- a/templates/index.html +++ b/templates/index.html @@ -106,7 +106,7 @@ {{/name}} {{capacity_btc}} BTC -
+
{{^active}}
{{/active}}