summaryrefslogtreecommitdiff
path: root/src/host.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-18 00:16:45 +0900
committer諏訪子 <suwako@076.moe>2024-06-18 00:16:45 +0900
commit11c97887ef28e9b073d9abf1c2da70cd01491c9e (patch)
tree41c7b4d79d99733b879f6c63c8c731484022fc7e /src/host.c
parent3d418e666955695052d25e32c6b2f296b7af6859 (diff)
メモリ
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host.c b/src/host.c
index f10cc52..ebafe13 100644
--- a/src/host.c
+++ b/src/host.c
@@ -27,7 +27,8 @@ void run_command(const char *command) {
}
void display_host_model() {
-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__minix)
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
+ defined(__DragonFly__) || defined(__minix)
run_command("sysctl -n hw.vendor hw.product");
#elif defined(__sun)
run_command("prtconf -b | awk -F':' '/banner-name/ {printf $2}'");