forked from Mirrors/badapplefetch
cast 1 to uint8_t ???
https://matrix.ari.lt/_matrix/media/r0/download/matrix.org/SWFkIzczASGlRdxLFsiNYIqZ Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
9e8693795b
commit
3ce12d7ab1
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@ images
|
|||
images/*
|
||||
frames
|
||||
frames/*
|
||||
*.mp4
|
||||
|
|
|
@ -258,7 +258,7 @@ unsigned char CPU_init(CPU *cpu) {
|
|||
strncpy(cpu->model, strchr(line, ':') + 2, 64);
|
||||
cpu->model[strcspn(cpu->model, "\n")] = 0;
|
||||
} else if (strncmp(line, "processor", 9) == 0)
|
||||
cpu->core_count += 1;
|
||||
cpu->core_count += (uint8_t)1;
|
||||
|
||||
fclose(fp_cpu);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue