Alec Rubin
68a3f8962a
fix(agent): read /proc/uptime on linux instead of sysinfo(2) ( #2180 )
...
gopsutil's host.Uptime() calls the sysinfo(2) syscall. Inside an LXC
container lxcfs virtualizes /proc/uptime but cannot intercept a
syscall, so every container reported the host's uptime.
Reads /proc/uptime on linux and falls back to host.Uptime() if the file
is missing or unparseable, so other platforms are unchanged.
2026-08-18 15:18:33 -04:00
..
2026-08-16 13:52:29 -04:00
2025-10-18 15:40:54 -04:00
2026-02-19 18:04:33 -05:00
2026-03-31 15:55:02 -04:00
2026-04-02 15:36:05 -04:00
2025-11-05 13:03:47 -05:00
2026-04-08 20:13:39 -04:00
2026-02-26 18:38:54 -05:00
2026-02-19 18:04:33 -05:00
2025-10-02 17:56:51 -04:00
2026-02-19 18:04:33 -05:00
2026-03-28 17:43:29 -04:00
2026-08-13 19:27:33 -04:00
2026-08-13 19:25:12 -04:00
2026-04-17 19:26:11 -04:00
2026-04-17 19:26:11 -04:00
2026-02-25 19:04:29 -05:00
2026-03-20 15:00:28 -04:00
2026-03-07 14:12:17 -05:00
2026-03-30 13:48:54 -04:00
2026-04-04 18:28:05 -04:00
2026-08-17 17:08:57 -04:00
2026-08-17 17:08:57 -04:00
2026-02-12 15:27:42 -05:00
2026-02-12 15:27:42 -05:00
2026-02-12 15:27:42 -05:00
2026-03-07 13:50:49 -05:00
2026-02-12 15:27:42 -05:00
2026-08-15 15:59:07 -04:00
2026-08-15 15:59:07 -04:00
2026-08-18 11:32:52 -04:00
2026-08-18 11:32:52 -04:00
2026-02-19 18:04:33 -05:00
2026-08-18 10:34:41 -04:00
2026-03-07 13:50:49 -05:00
2026-04-07 18:41:22 -04:00
2026-01-29 18:35:57 -05:00
2026-02-18 14:51:30 -05:00
2026-02-18 15:15:58 -05:00
2026-03-27 13:52:22 -04:00
2026-08-16 11:20:43 -04:00
2026-08-16 11:20:43 -04:00
2026-08-16 11:20:43 -04:00
2026-03-07 14:12:17 -05:00
2026-01-12 15:38:13 -05:00
2026-02-13 19:41:40 -05:00
2026-01-11 20:27:34 -05:00
2026-01-12 15:38:13 -05:00
2026-08-16 11:41:28 -04:00
2026-08-16 11:20:43 -04:00
2026-08-16 11:41:28 -04:00
2026-08-15 13:40:30 -04:00
2026-08-15 13:40:30 -04:00
2026-08-18 10:10:12 -04:00
2026-08-18 10:10:12 -04:00
2026-02-27 13:42:47 -05:00
2026-03-10 18:46:57 -04:00
2026-03-10 18:46:57 -04:00
2026-08-15 13:40:30 -04:00
2026-08-16 20:58:41 -04:00
2026-08-16 21:16:12 -04:00
2026-08-16 21:16:12 -04:00
2026-08-16 20:58:41 -04:00
2026-04-02 15:10:49 -04:00
2025-09-07 16:42:15 -04:00
2026-04-02 15:10:49 -04:00
2026-08-11 17:14:59 -04:00
2026-08-11 17:14:59 -04:00
2025-11-05 13:03:47 -05:00
2026-08-17 13:55:27 -04:00
2025-11-05 13:03:47 -05:00
2026-08-17 13:55:27 -04:00
2026-08-18 10:34:41 -04:00
2026-08-18 15:18:33 -04:00
2026-01-12 15:38:13 -05:00
2025-11-14 17:28:40 -05:00
2026-03-20 15:00:28 -04:00
2026-03-17 15:11:44 -04:00
2026-02-06 14:32:57 -05:00
2026-08-18 15:18:33 -04:00
2026-08-18 15:18:33 -04:00
2026-08-18 15:18:33 -04:00