[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'
Florian Forster
octo at verplant.org
Wed Sep 27 11:38:35 CEST 2017
src/uptime.c | 57 ++++++++++++++++++++-------------------------------------
1 file changed, 20 insertions(+), 37 deletions(-)
New commits:
commit 2ec16cfeb86629a81a6942deb9b7e3c1b1711e02
Merge: d9cf269 4943510
Author: Florian Forster <octo at collectd.org>
Date: Wed Sep 27 11:37:57 2017 +0200
Merge remote-tracking branch 'github/pr/2034'
commit 4943510c1db22b5cf6342411271eb10255680211
Author: Marcin Jurkowski <marcin1j at gmail.com>
Date: Tue Jul 11 15:00:25 2017 +0200
uptime plugin: don't cache boot time and simplify Linux code
Caching boottime on startup yields incorrect uptime values if system
date changes after the daemon is started.
This is almost certain to happen on embedded systems without RTC, where
clock is set from NTP server at some point after boot process.
On Linux, we can retrieve uptime directly by either reading /proc/uptime
(it's sufficient to read a few bytes) or calling sysinfo() function.
Use the latter since it's the most efficient way in speed, memory
requirements and code simplicity terms.
More information about the collectd-changes
mailing list