From 0d3b71f3163d34a35506668066f94fcad8d5c6f8 Mon Sep 17 00:00:00 2001 From: Paint_Ninja Date: Sun, 7 Aug 2022 19:04:33 +0100 Subject: Improve operating system info (#238) --- .../src/main/java/me/lucko/spark/common/util/LinuxProc.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'spark-common/src/main/java/me/lucko/spark/common/util') diff --git a/spark-common/src/main/java/me/lucko/spark/common/util/LinuxProc.java b/spark-common/src/main/java/me/lucko/spark/common/util/LinuxProc.java index 7d688d7..44fd3f9 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/util/LinuxProc.java +++ b/spark-common/src/main/java/me/lucko/spark/common/util/LinuxProc.java @@ -49,7 +49,12 @@ public enum LinuxProc { /** * Information about the system network usage. */ - NET_DEV("/proc/net/dev"); + NET_DEV("/proc/net/dev"), + + /** + * Information about the operating system distro. + */ + OSINFO("/etc/os-release"); private final Path path; -- cgit