Skip to content

Commit 0fea7a6

Browse files
Merge pull request #324 from jaredhendrickson13/next_patch
v1.5.2 Fixes
2 parents 77608b6 + 425fc03 commit 0fea7a6

4 files changed

Lines changed: 81 additions & 80 deletions

File tree

composer.lock

Lines changed: 77 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pfSense-pkg-API/files/etc/inc/api/framework/APIQuery.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ class APIQuery {
9191

9292
# Only proceed if key is not excluded from queries
9393
if (!$this->is_excluded($q_key)) {
94-
# Always prefer exact matches first
95-
if ($entry[$key] === $value) {
94+
# Always prefer exact matches first. Don't strict type match since the pfSense config won't store types.
95+
if ($entry[$key] == $value) {
9696
return true;
9797
}
9898

pfSense-pkg-API/files/etc/inc/api/models/APIStatusSystemRead.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class APIStatusSystemRead extends APIModel {
4545
"temp_c" => $this->__get_temp(),
4646
"temp_f" => $this->__get_temp(false),
4747
"load_avg" => $this->__get_load_avg(),
48+
"cpu_count" => (int)get_single_sysctl("hw.ncpu"),
4849
"mbuf_usage" => $this->__get_mbuf_usage(),
4950
"mem_usage" => (!is_null(mem_usage())) ? APITools\float_percent(mem_usage()) : null,
5051
"swap_usage" => (!is_null(swap_usage())) ? APITools\float_percent(swap_usage()) : null,

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
jinja2~=3.1.2
22
requests~=2.28.1
33
pylint~=2.15.4
4-
urllib3~=1.26.12
4+
urllib3~=1.26.13

0 commit comments

Comments
 (0)