From 9e411d785bc4e104183dda537488f8aa2906ec13 Mon Sep 17 00:00:00 2001
From: Maran <maran.hidskes@gmail.com>
Date: Tue, 3 Jun 2014 10:42:36 +0200
Subject: [PATCH] Tweaks and latency added to peeroverview

---
 ethereal/assets/qml/wallet.qml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index 8c04c6344..b626bf044 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -637,7 +637,7 @@ ApplicationWindow {
 
 	function addPeer(peer) {
 		// We could just append the whole peer object but it cries if you try to alter them
-		peerModel.append({ip: peer.ip, port: peer.port, lastResponse:timeAgo(peer.lastSend), version: peer.version})
+		peerModel.append({ip: peer.ip, port: peer.port, lastResponse:timeAgo(peer.lastSend), latency: peer.latency, version: peer.version})
 	}
 
 	function resetPeers(){
@@ -666,7 +666,7 @@ ApplicationWindow {
 	Window {
 		id: peerWindow
 		height: 200
-		width: 500
+		width: 700
 		Rectangle {
 			anchors.fill: parent
 			property var peerModel: ListModel {
@@ -676,10 +676,11 @@ ApplicationWindow {
 				anchors.fill: parent
 				id: peerTable
 				model: peerModel
-				TableViewColumn{width: 120; role: "ip" ; title: "IP" }
+				TableViewColumn{width: 100; role: "ip" ; title: "IP" }
 				TableViewColumn{width: 60; role: "port" ; title: "Port" }
-				TableViewColumn{width: 120; role: "lastResponse"; title: "Last event" }
-				TableViewColumn{width: 180; role: "version" ; title: "Version" }
+				TableViewColumn{width: 140; role: "lastResponse"; title: "Last event" }
+				TableViewColumn{width: 100; role: "latency"; title: "Latency" }
+				TableViewColumn{width: 260; role: "version" ; title: "Version" }
 			}
 		}
 	}
-- 
GitLab