diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-19 15:44:06 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-19 15:44:06 +0900 |
commit | 171b28947349399d5590210635e57957c80f2876 (patch) | |
tree | fc2c8756b887715f37246301d337defd97b46636 /main.c | |
parent | b79c513c07be42378167f412fa9bc35303f1a94a (diff) |
GPU情報は文字化(glxinfoを実効出来なければ、スキップ)
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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", ": "); |