From ecd69370ab6654de34db8bde8c2d6cdf1625054f Mon Sep 17 00:00:00 2001 From: Carter Li Date: Tue, 25 Jun 2024 10:16:19 +0800 Subject: [PATCH] OS (Linux): prioritize `prettyName` over `name` --- 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 5a6123f1d..1e0d6842c 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->name.length > 0) - ffStrbufAppend(result, &os->name); - else if(os->prettyName.length > 0) + if(os->prettyName.length > 0) ffStrbufAppend(result, &os->prettyName); + else if(os->name.length > 0) + ffStrbufAppend(result, &os->name); else if(os->id.length > 0) ffStrbufAppend(result, &os->id); else