Skip to content

Commit 2281caa

Browse files
committed
Fastfetch: fix bug that stat info is unexpectly printed
1 parent 96c838d commit 2281caa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/commandoption.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static void parseStructureCommand(
106106
void ffPrintCommandOption(FFdata* data, yyjson_mut_doc* jsonDoc)
107107
{
108108
//Parse the structure and call the modules
109-
uint32_t thres = (uint32_t) instance.config.display.stat;
109+
int32_t thres = instance.config.display.stat;
110110
uint32_t startIndex = 0;
111111
while (startIndex < data->structure.length)
112112
{

src/common/jsonconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static const char* printJsonConfig(bool prepare, yyjson_mut_doc* jsonDoc)
182182
if (!modules) return NULL;
183183
if (!yyjson_is_arr(modules)) return "Property 'modules' must be an array of strings or objects";
184184

185-
uint32_t thres = (uint32_t) instance.config.display.stat;
185+
int32_t thres = instance.config.display.stat;
186186
yyjson_val* item;
187187
size_t idx, max;
188188
yyjson_arr_foreach(modules, idx, max, item)

0 commit comments

Comments
 (0)