openwrt/package
Jan Hoffmann db4bf4b968 ltq-vdsl/ltq-adsl: fix elapsed time calculation
The driver maintains elapsed times by repeatedly accumulating the time
since the previous update in a loop. For the elapsed showtime time, the
time difference is truncated to seconds before adding it, leading to a
sizable error over time.

Move the truncation to before calculation of the time difference in
order to remove this error. Also maintain the total elapsed time in the
same way in full seconds, to prevent the unsigned 32-bit counter from
wrapping around after about 50 days.

Testing on a VR9 device shows that the reported line uptime now matches
the actual elapsed wall time. The ADSL variant is only compile-tested,
but it should also work as the relevant code is identical.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
2022-05-04 01:38:04 +01:00
..
base-files base-files: simplify restorecon logic 2022-05-02 21:11:05 +01:00
boot uboot-mvebu: update to version v2022.04 2022-05-01 00:42:30 +02:00
devel strace: Update to version 5.16 2022-02-01 21:25:02 +01:00
firmware ipq40xx: fix BDF file for pcie wifi chip on the GL.Inet GL-B2200 2022-05-02 21:16:14 +02:00
kernel ltq-vdsl/ltq-adsl: fix elapsed time calculation 2022-05-04 01:38:04 +01:00
libs wolfssl: fix compilation with /dev/crypto 2022-04-20 12:36:38 +02:00
network uqmi: update to git HEAD 2022-05-04 01:33:21 +01:00
system fstools: update to git HEAD 2022-05-03 02:11:17 +01:00
utils mdadm: update to 4.2 2022-05-01 00:42:30 +02:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00