summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lockyer <daniellockyer@fastmail.com>2022-12-27 12:27:47 +0100
committerGitHub <noreply@github.com>2022-12-27 12:27:47 +0100
commitd86ac5536d147f4fdf60ae3e232b3c15387b0d88 (patch)
tree11bdce6c5c18e7e18b1deb0d86146c00a1b26f53
parentf0a0d6d0771f5bd8b1df8e5a8d2b8991870533a5 (diff)
downloadpsutil-d86ac5536d147f4fdf60ae3e232b3c15387b0d88.tar.gz
Fixed typo in debug message (#2187)
- this should be referring to `sysctl`, like the statement below
-rw-r--r--psutil/arch/osx/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/arch/osx/cpu.c b/psutil/arch/osx/cpu.c
index 2d94f31d..6e564718 100644
--- a/psutil/arch/osx/cpu.c
+++ b/psutil/arch/osx/cpu.c
@@ -127,7 +127,7 @@ psutil_cpu_freq(PyObject *self, PyObject *args) {
return PyErr_SetFromOSErrnoWithSyscall("sysctl(HW_CPU_FREQ)");
if (sysctlbyname("hw.cpufrequency_min", &min, &size, NULL, 0))
- psutil_debug("sysct('hw.cpufrequency_min') failed (set to 0)");
+ psutil_debug("sysctl('hw.cpufrequency_min') failed (set to 0)");
if (sysctlbyname("hw.cpufrequency_max", &max, &size, NULL, 0))
psutil_debug("sysctl('hw.cpufrequency_min') failed (set to 0)");