From 9df394bba3fc0faf19535b4cf753899df0003265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 3 Jul 2024 16:37:51 +0800 Subject: [PATCH] Revert "OS (Linux): prioritize `prettyName` over `name`" This reverts commit ecd69370ab6654de34db8bde8c2d6cdf1625054f. --- src/modules/os/os.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/os/os.c b/src/modules/os/os.c index 3d1aadebd..6a02dac3b 100644 --- a/src/modules/os/os.c +++ b/src/modules/os/os.c @@ -12,10 +12,10 @@ static void buildOutputDefault(const FFOSResult* os, FFstrbuf* result) { //Create the basic output - if(os->prettyName.length > 0) - ffStrbufAppend(result, &os->prettyName); - else if(os->name.length > 0) + if(os->name.length > 0) ffStrbufAppend(result, &os->name); + else if(os->prettyName.length > 0) + ffStrbufAppend(result, &os->prettyName); else if(os->id.length > 0) ffStrbufAppend(result, &os->id); else