From 4d486fc2c2a5e373ed92ca30bbf57d001bda4ecc Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Wed, 23 Jun 2010 08:58:23 +0000 Subject: [PATCH] (web) un-uglify the peer list transfer speed colums from r10804 --- web/javascript/transmission.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index 8424ab143..6d30b92e1 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -1335,8 +1335,8 @@ Transmission.prototype = var parity = ((i+1) % 2 == 0 ? 'even' : 'odd'); html += ''; html += '' + (peer.isEncrypted ? 'Encrypted' : '') + ''; - html += '' + Transmission.fmt.speed(peer.rateToPeer) + ''; - html += '' + Transmission.fmt.speed(peer.rateToClient) + ''; + html += '' + ( peer.rateToPeer ? Transmission.fmt.speed(peer.rateToPeer) : '' ) + ''; + html += '' + ( peer.rateToClient ? Transmission.fmt.speed(peer.rateToClient) : '' ) + ''; html += '' + Math.floor(peer.progress*100) + '%' + ''; html += '' + peer.flagStr + ''; html += '' + peer.address + '';