aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko/spark/common/util
diff options
context:
space:
mode:
authorPaint_Ninja <PaintNinja@users.noreply.github.com>2022-08-07 19:04:33 +0100
committerGitHub <noreply@github.com>2022-08-07 19:04:33 +0100
commit0d3b71f3163d34a35506668066f94fcad8d5c6f8 (patch)
tree21662cd5a86f983436b816a75ac1acabdf2ca190 /spark-common/src/main/java/me/lucko/spark/common/util
parentf9c898caf921c47f9c6d94f9c1e7d19905b55c07 (diff)
downloadspark-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.java7
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;