X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=server.py;h=5846fba7748832ac8af900659e3017c0661a2b06;hb=3051f46df11fc6c9ebe321c9ef6d726e65310129;hp=914a6bbb08278b55381c5512d2341eccf8c2b35b;hpb=da84c75f9a5006b9b10b527eec8e0c27de5b8abd;p=electrum-server.git diff --git a/server.py b/server.py index 914a6bb..5846fba 100755 --- a/server.py +++ b/server.py @@ -72,8 +72,9 @@ def run_rpc_command(command, stratum_tcp_port): r = json.loads(msg).get('result') if command == 'stop': print r elif command == 'info': + now = time.time() for item in r: - print '%15s %3s %7s'%( item.get('address'), item.get('subscriptions'), item.get('version') ) + print '%15s %3s %7s %.2f'%( item.get('address'), item.get('subscriptions'), item.get('version'), (now - item.get('time')) ) if __name__ == '__main__': config = create_config()