From 45baf81c48cb5d9e2c325e989264110e1694ed05 Mon Sep 17 00:00:00 2001 From: toyg Date: Wed, 15 Jan 2014 23:26:13 +0000 Subject: [PATCH] display client version --- network.html | 7 +++++-- twister_network.js | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/network.html b/network.html index 82053eb..1adc43d 100644 --- a/network.html +++ b/network.html @@ -80,17 +80,20 @@
  • Updating status...
  • +
  • + + 00.00.00.00

    Detailed information

    • - 1 + 0
    • - 6 + 0
    • diff --git a/twister_network.js b/twister_network.js index 5fb144e..eb68780 100644 --- a/twister_network.js +++ b/twister_network.js @@ -20,11 +20,17 @@ function requestNetInfo(cbFunc, cbArg) { twisterdAddrman = ret.addrman_total; twisterdBlocks = ret.blocks; twisterDhtNodes = ret.dht_nodes; + twisterVersion = ("0000000" + ret.version).slice(-8); + twisterDisplayVersion = twisterVersion.slice(0,2) + '.' + + twisterVersion.slice(2,4) + '.' + + twisterVersion.slice(4,6) + '.' + + twisterVersion.slice(6,8); $(".connection-count").text(twisterdConnections); $(".known-peers").text(twisterdAddrman); $(".blocks").text(twisterdBlocks); $(".dht-nodes").text(twisterDhtNodes); + $(".version").text(twisterDisplayVersion); if( !twisterdConnections ) { $.MAL.setNetworkStatusMsg("Connection lost.", false);