summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-19 15:44:06 +0900
committer諏訪子 <suwako@076.moe>2024-06-19 15:44:06 +0900
commit171b28947349399d5590210635e57957c80f2876 (patch)
treefc2c8756b887715f37246301d337defd97b46636 /main.c
parentb79c513c07be42378167f412fa9bc35303f1a94a (diff)
GPU情報は文字化(glxinfoを実効出来なければ、スキップ)
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 389acde..e565f9d 100644
--- a/main.c
+++ b/main.c
@@ -143,11 +143,11 @@ int main(int argc, char *argv[]) {
printf("\n");
lc++;
- printf("%s ", LOGO[lc]);
- printf(COLOR"%s%s"RESET, "GPU", ": ");
- display_gpu();
- printf("\n");
- lc++;
+ if (display_gpu()) {
+ printf("%s ", LOGO[lc]);
+ printf(COLOR"%s%s%s\n"RESET, "GPU", ": ", display_gpu());
+ lc++;
+ }
printf("%s ", LOGO[lc]);
printf(COLOR"%s%s"RESET, "Memory", ": ");