This repository was archived by the owner on Dec 23, 2017. It is now read-only.
Commit 1c2407a
Jochen Schalanda
Base node uptime calulation on System#nanoTime()
Previously, the uptime of a Graylog node has been calculated using the difference
between the start time and the current time. If the system time changed during the
runtime of the node (e. g. by synchronisation using an NTP service), the uptime would
be incorrect and could even be negative.
The current implementation is using the System#nanoTime() ticker to calculate the uptime
since the JVM (or more precisely: since the plugin) has been started.1 parent c20316c commit 1c2407a
File tree
1 file changed
+3
-1
lines changed- src/main/java/org/graylog/plugins/usagestatistics/collectors
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
185 | | - | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
| |||
0 commit comments