projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add interface uptime to the status info
[project/netifd.git]
/
interface.c
diff --git
a/interface.c
b/interface.c
index
3820050
..
17cb754
100644
(file)
--- 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: