diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-11 17:59:24 -0700 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-11 17:59:24 -0700 |
commit | 5d3c9540eea7cf1ff9427df6995427697fb2629b (patch) | |
tree | eb8d146962e43dd0829ca40d758a08c8402a7c80 /lib/serve.js | |
parent | 42e01f840cc8ed4042ac8dd1e1c99cdfe4d0c29e (diff) | |
download | patchfoo-5d3c9540eea7cf1ff9427df6995427697fb2629b.tar.gz patchfoo-5d3c9540eea7cf1ff9427df6995427697fb2629b.zip |
Fix peer sorting
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index 99755c0..7879377 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -375,7 +375,7 @@ Serve.prototype.peers = function (ext) { peer.client ? '→' : '←', ' ', h('code', peer.host, ':', peer.port, ':'), self.app.render.idLink(peer.key, done()), ' ', - htime(new Date(peer.stateChange)), ' ', + peer.stateChange ? [htime(new Date(peer.stateChange)), ' '] : '', peer.state === 'connected' ? 'connected' : [ h('input', {name: 'action', type: 'submit', value: 'connect'}), h('input', {name: 'address', type: 'hidden', value: addr}) |