Commit f60d984978b4572cce145f23bdb05cffdf813d2b
oops, missed one peers check
Dominic Tarr committed on 11/3/2016, 8:34:45 PMParent: 461891f5e7000d2ff9993e59870f71d69408cd36
Files changed
modules/network.js | changed |
modules/network.js | ||
---|---|---|
@@ -117,11 +117,11 @@ | ||
117 | 117 … | ' ', |
118 | 118 … | getType(peer), |
119 | 119 … | ' ', |
120 | 120 … | //TODO: show nicer details, with labels. etc. |
121 | - peer.ping ? duration(peer.ping.rtt.mean) : '', | |
121 … | + peer.ping && peer.ping.rtt ? duration(peer.ping.rtt.mean) : '', | |
122 | 122 … | ' ', |
123 | - peer.ping ? duration(peer.ping.skew.mean) : '', | |
123 … | + peer.ping && peer.ping.skew ? duration(peer.ping.skew.mean) : '', | |
124 | 124 … | h('label', |
125 | 125 … | {title: new Date(peer.stateChange).toString()}, |
126 | 126 … | peer.stateChange && ('(' + human(new Date(peer.stateChange))) + ')') |
127 | 127 … | ), |
Built with git-ssb-web