net/mwan3: use uptime for ubus age info
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 9 Nov 2017 08:57:58 +0000 (09:57 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 16 Nov 2017 08:15:04 +0000 (09:15 +0100)
commit267c0eeaeda44bcd02e794548f2cfa121b959869
tree0f236ade47989ab18f2abf9d928b9f2b170a4d36
parent84e5012e88537cfa23b81e87e3cfaf66b17d5524
net/mwan3: use uptime for ubus age info

If the date is changed by ntp the age value of mwan3 on ubus could jitter.
Use instead the uptime value from /proc/uptime which will not change during
system run.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/lib/mwan3/common.sh [new file with mode: 0644]
net/mwan3/files/usr/libexec/rpcd/mwan3
net/mwan3/files/usr/sbin/mwan3track