Revert "try channel values"
This reverts commit 11655e8aba22b7ba1ed5447939f78818ea006668.
This commit is contained in:
		
							parent
							
								
									2fd40eb4f6
								
							
						
					
					
						commit
						325015d95b
					
				@ -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) {
 | 
			
		||||
 | 
			
		||||
@ -106,7 +106,7 @@
 | 
			
		||||
                            {{/name}}
 | 
			
		||||
                            <span class="amount">{{capacity_btc}} BTC</span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        <div class="graph"><progress id="progressbar" class="" value="{{local}}" max="{{local}}{{remote}}" style="width:{{local}}{{remote}}%"></progress></div>
 | 
			
		||||
                        <div class="graph"><progress id="progressbar" class="" value="20" max="100" style="width:100%"></progress></div>
 | 
			
		||||
                        {{^active}}
 | 
			
		||||
                        <div class="status"><span class="label right" title="inactive"></span></div>
 | 
			
		||||
                        {{/active}} 
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user