collectd: uptime plugin: apply fix from upstream
authorHannu Nyman <hannu.nyman@iki.fi>
Fri, 15 Sep 2017 16:10:37 +0000 (19:10 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 15 Sep 2017 16:10:37 +0000 (19:10 +0300)
commitfa3a118de87d7600729dd07d2f24ca3138d9dd4d
treed0ed5b500233f44451a5385b584e9f315df06fc1
parenta61d8060e1369bb80f4a7609d2e1dc59901d2d61
collectd: uptime plugin: apply fix from upstream

Backport from master the fix for uptime plugin.
Adjust it for 5.5.3

  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

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]