summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-10 19:12:43 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-10 19:12:43 +0200
commit34a1a4bad31ba6f138cd6a98249c774ff66285d1 (patch)
tree0e6f0b0af6edbb66490145b47fc5b60c9d58608c /interface.c
parent3085170188cc5bf04f4cfb6f07c292e06d2b40a8 (diff)
add interface uptime to the status info
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index 3820050..17cb754 100644
--- a/interface.c
+++ b/interface.c
@@ -9,6 +9,7 @@
#include "proto.h"
#include "ubus.h"
#include "config.h"
+#include "system.h"
struct vlist_tree interfaces;
@@ -238,6 +239,7 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
return;
iface->state = IFS_UP;
+ iface->start_time = system_get_rtime();
interface_event(iface, IFEV_UP);
break;
case IFPEV_DOWN: