syncthing/lib/ur
tomasz1986 f42f041f53
lib/ur: Don't report uptime if start time is in the past (fixes #7698) (#8996)
Currently, because of devices with unset RTC clock, the 100% percentile
for Uptime on [1] is calculated since the Unix epoch which is useless as
far as usage statistics are concerned. Thus, if the Syncthing start time
is set to a past date, assume that the clock is wrong and do not even
try to report the uptime.

[1] https://data.syncthing.net

Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
Co-authored-by: Jakob Borg <jakob@kastelo.net>
2023-07-22 21:25:03 +00:00
..
contract all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
debug.go all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
failurereporting.go lib/ur: Properly initialize map in failure data (fixes #8479) (#8480) 2022-08-03 10:41:26 +02:00
memsize_darwin.go lib/ur: Normalise contract between syncthing and ursrv (#6770) 2020-06-23 09:47:15 +01:00
memsize_linux.go lib/ur: Plug file descriptor leak in Linux memorySize (#7266) 2021-01-11 15:15:21 +01:00
memsize_netbsd.go lib/ur: Normalise contract between syncthing and ursrv (#6770) 2020-06-23 09:47:15 +01:00
memsize_solaris.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
memsize_unimpl.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
memsize_windows.go lib/ur: Normalise contract between syncthing and ursrv (#6770) 2020-06-23 09:47:15 +01:00
usage_report.go lib/ur: Don't report uptime if start time is in the past (fixes #7698) (#8996) 2023-07-22 21:25:03 +00:00