summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-15 16:35:34 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-15 16:35:34 +0200
commit316180d885042b7ea2f2f1f67c3175c0a1ad41fa (patch)
tree77f2fb0d5778455c2bed55be348cf06c3380a651 /src/peer.c
parent7ebbe05f46e1b8530a61dd144a4bf36a1c63a4a3 (diff)
downloadfastd-316180d885042b7ea2f2f1f67c3175c0a1ad41fa.tar
fastd-316180d885042b7ea2f2f1f67c3175c0a1ad41fa.zip
status: add uptime and established times
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/peer.c b/src/peer.c
index a34283f..03e5716 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -843,6 +843,7 @@ void fastd_peer_set_established(fastd_peer_t *peer) {
return;
peer->state = STATE_ESTABLISHED;
+ peer->established = ctx.now;
on_establish(peer);
pr_info("connection with %P established.", peer);
}