collectd: uptime plugin: apply fix from upstream
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 14 Sep 2017 21:09:42 +0000 (00:09 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Thu, 14 Sep 2017 21:18:34 +0000 (00:18 +0300)
commit63a45e6de3e95a030374e5098a6b0114ecbbd8dd
tree483654664303ed1b10373149f7a060ae7926d2ee
parent2a57aa4e77e1c710e0341cf96ab0b6f0fd282e25
collectd: uptime plugin: apply fix from upstream

Uptime plugin fails to adjust for system time changes after boot.
As Openwrt/LEDE routers usually do not have a RTC, the system time
gets adjusted with NTP possibly after collectd has already started.
But collectd continues to use the initial time set by 'sysfixtime',
which can lead to incorrect uptime calculations.

Apply a proposed fix from upstream that uses /proc/uptime
Reference to https://github.com/collectd/collectd/pull/2034

Fixes #4819

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
utils/collectd/Makefile
utils/collectd/patches/500-fix-uptime-reading.patch [new file with mode: 0644]