diff options
author | Paint_Ninja <PaintNinja@users.noreply.github.com> | 2022-08-07 19:04:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 19:04:33 +0100 |
commit | 0d3b71f3163d34a35506668066f94fcad8d5c6f8 (patch) | |
tree | 21662cd5a86f983436b816a75ac1acabdf2ca190 /spark-common/src/main/java/me/lucko/spark/common/util | |
parent | f9c898caf921c47f9c6d94f9c1e7d19905b55c07 (diff) | |
download | spark-0d3b71f3163d34a35506668066f94fcad8d5c6f8.tar.gz spark-0d3b71f3163d34a35506668066f94fcad8d5c6f8.tar.bz2 spark-0d3b71f3163d34a35506668066f94fcad8d5c6f8.zip |
Improve operating system info (#238)
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/common/util')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/util/LinuxProc.java | 7 |
1 files changed, 6 insertions, 1 deletions
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; |