]> granicus.if.org Git - transmission/commitdiff
(web) un-uglify the peer list transfer speed colums from r10804
authorDaniel Lee <Longinus00@gmail.com>
Wed, 23 Jun 2010 08:58:23 +0000 (08:58 +0000)
committerDaniel Lee <Longinus00@gmail.com>
Wed, 23 Jun 2010 08:58:23 +0000 (08:58 +0000)
web/javascript/transmission.js

index 8424ab143ba148b803a55f988bdabd22429a1c74..6d30b92e143f35d265d848fe082a51ba15dcce74 100644 (file)
@@ -1335,8 +1335,8 @@ Transmission.prototype =
                                        var parity = ((i+1) % 2 == 0 ? 'even' : 'odd');
                                        html += '<tr class="inspector_peer_entry ' + parity + '">';
                                        html += '<td>' + (peer.isEncrypted ? '<img src="images/graphics/lock_icon.png" alt="Encrypted"/>' : '') + '</td>';
-                                       html += '<td>' + Transmission.fmt.speed(peer.rateToPeer) + '</td>';
-                                       html += '<td>' + Transmission.fmt.speed(peer.rateToClient) + '</td>';
+                                       html += '<td>' + ( peer.rateToPeer ? Transmission.fmt.speed(peer.rateToPeer) : '' ) + '</td>';
+                                       html += '<td>' + ( peer.rateToClient ? Transmission.fmt.speed(peer.rateToClient) : '' ) + '</td>';
                                        html += '<td class="percentCol">' + Math.floor(peer.progress*100) + '%' + '</td>';
                                        html += '<td>' + peer.flagStr + '</td>';
                                        html += '<td>' + peer.address + '</td>';