summaryrefslogtreecommitdiff
path: root/psutil/arch
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2022-03-15 17:17:00 +0800
committerGitHub <noreply@github.com>2022-03-15 10:17:00 +0100
commit446f4bfed1463f9016cf6bdd36f6b30700bec0ad (patch)
treee36aae1c32c2dc8065b79822c02eb6d2529bb311 /psutil/arch
parent8091fa5999d2ac5c83e4aaf99a5560dc63dbee4b (diff)
downloadpsutil-446f4bfed1463f9016cf6bdd36f6b30700bec0ad.tar.gz
fix some typos (#2085)
Signed-off-by: cuishuang <imcusg@gmail.com>
Diffstat (limited to 'psutil/arch')
-rw-r--r--psutil/arch/osx/cpu.c2
-rw-r--r--psutil/arch/solaris/v10/ifaddrs.c2
-rw-r--r--psutil/arch/windows/process_utils.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/psutil/arch/osx/cpu.c b/psutil/arch/osx/cpu.c
index 37141a2d..2d94f31d 100644
--- a/psutil/arch/osx/cpu.c
+++ b/psutil/arch/osx/cpu.c
@@ -119,7 +119,7 @@ psutil_cpu_freq(PyObject *self, PyObject *args) {
size_t len = sizeof(curr);
size_t size = sizeof(min);
- // also availble as "hw.cpufrequency" but it's deprecated
+ // also available as "hw.cpufrequency" but it's deprecated
mib[0] = CTL_HW;
mib[1] = HW_CPU_FREQ;
diff --git a/psutil/arch/solaris/v10/ifaddrs.c b/psutil/arch/solaris/v10/ifaddrs.c
index b741a6b9..3719c8c1 100644
--- a/psutil/arch/solaris/v10/ifaddrs.c
+++ b/psutil/arch/solaris/v10/ifaddrs.c
@@ -1,4 +1,4 @@
-/* Refrences:
+/* References:
* https://lists.samba.org/archive/samba-technical/2009-February/063079.html
* http://stackoverflow.com/questions/4139405/#4139811
* https://github.com/steve-o/openpgm/blob/master/openpgm/pgm/getifaddrs.c
diff --git a/psutil/arch/windows/process_utils.c b/psutil/arch/windows/process_utils.c
index acbda301..f9d4bbc8 100644
--- a/psutil/arch/windows/process_utils.c
+++ b/psutil/arch/windows/process_utils.c
@@ -160,7 +160,7 @@ psutil_handle_from_pid(DWORD pid, DWORD access) {
}
-// Check for PID existance. Return 1 if pid exists, 0 if not, -1 on error.
+// Check for PID existence. Return 1 if pid exists, 0 if not, -1 on error.
int
psutil_pid_is_running(DWORD pid) {
HANDLE hProcess;