Skip to content

Commit

Permalink
CPU (NetBSD): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Dec 22, 2024
1 parent d3e40f6 commit 851f271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detection/cpu/cpu_nbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ static const char* detectCpuTemp(double* current)
if (!array) return "No temp data found in root dictionary";

if (prop_array_count(array) != 2)
return "Unexpect `xtemp0` data";
return "Unexpected `xtemp0` data";

prop_dictionary_t dict = prop_array_get(array, 0);
if (prop_object_type(dict) != PROP_TYPE_DICTIONARY)
return "Unexpect `xtemp0[0]`";
return "Unexpected `xtemp0[0]`";

int temp = 0; // in µK
if (!prop_dictionary_get_int(dict, "cur-value", &temp))
Expand Down

0 comments on commit 851f271

Please sign in to comment.