From 171b28947349399d5590210635e57957c80f2876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Wed, 19 Jun 2024 15:44:06 +0900 Subject: =?UTF-8?q?GPU=E6=83=85=E5=A0=B1=E3=81=AF=E6=96=87=E5=AD=97?= =?UTF-8?q?=E5=8C=96=EF=BC=88glxinfo=E3=82=92=E5=AE=9F=E5=8A=B9=E5=87=BA?= =?UTF-8?q?=E6=9D=A5=E3=81=AA=E3=81=91=E3=82=8C=E3=81=B0=E3=80=81=E3=82=B9?= =?UTF-8?q?=E3=82=AD=E3=83=83=E3=83=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main.c') 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", ": "); -- cgit v1.2.3