Compare commits

...

3 Commits

Author SHA1 Message Date
Chakib Benziane 8c264bd74b
Fix: Up and Down real time bandwidth is reversed 7 years ago
Daniel Edgecumbe 7bcdf07e91 Merge pull request #11 from sp4ke/patch-1
use "rpcconnect" instead of "rpcip" in conf file
7 years ago
Chakib Benziane 0ed1c57f47 use "rpcconnect" instead of "rpcip" in conf file
The parameter `rpcip` does not exist in bitcoin.conf. You need to use instead `rpcconnect`
7 years ago

@ -68,8 +68,8 @@ class NetView(view.View):
if len(deltas) > chart_width:
deltas = deltas[-chart_width:]
up_str = "Up: {: 9.2f}kB/s".format(deltas[-1][1]/1024).rjust(10)
down_str = "Down: {: 9.2f}kB/s".format(deltas[-1][0]/1024).rjust(10)
up_str = "Up: {: 9.2f}kB/s".format(deltas[-1][0]/1024).rjust(10)
down_str = "Down: {: 9.2f}kB/s".format(deltas[-1][1]/1024).rjust(10)
total_str = "Total: {: 9.2f}kB/s".format((deltas[-1][0] + deltas[-1][1])/1024).rjust(10)
self._pad.addstr(ph-2, pw-62, up_str, CBOLD + CCYAN)
self._pad.addstr(ph-2, pw-42, down_str, CBOLD + CGREEN)

@ -29,7 +29,7 @@ def get_url_from_datadir(datadir):
return craft_url("http", "localhost", 8332)
proto = cfg["protocol"] if "protocol" in cfg else "http"
ip = cfg["rpcip"] if "rpcip" in cfg else "localhost"
ip = cfg["rpcconnect"] if "rpcconnect" in cfg else "localhost"
try:
port = cfg["rpcport"]
except KeyError:

Loading…
Cancel
Save