Skip to content

Commit

Permalink
Merge pull request #1 from LinusDierheimer/master
Browse files Browse the repository at this point in the history
build temps file
  • Loading branch information
x-zvf committed Jun 16, 2022
1 parent 5b030de commit bccd1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ add_library(libfastfetch OBJECT
src/detection/vulkan.c
src/detection/media.c
src/detection/datetime.c
src/detection/temps.c
src/detection/displayserver/displayServer.c
src/detection/displayserver/wayland.c
src/detection/displayserver/xcb.c
Expand Down
5 changes: 1 addition & 4 deletions src/detection/temps.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
static bool isTempFile(const char* name)
{
return
name[0] == 't' &&
name[1] == 'e' &&
name[2] == 'm' &&
name[3] == 'p' &&
strncmp(name, "temp", 4) == 0 &&
name[4] >= '0' &&
name[4] <= '9' &&
strncmp(name + 5, "_input", 6) == 0;
Expand Down

0 comments on commit bccd1cf

Please sign in to comment.