summaryrefslogtreecommitdiff
path: root/psutil/arch
diff options
context:
space:
mode:
authorKian-Meng Ang <kianmeng@cpan.org>2022-01-27 08:26:28 +0800
committerKian-Meng Ang <kianmeng@cpan.org>2022-01-27 08:26:28 +0800
commit471b19d2aa799cd73bded23379e864dd35bec2b6 (patch)
tree26edd4638ab349b8c685aa645fbd9fb522e0cd89 /psutil/arch
parentf716afc81d4c9ded08b23d376612e1491d3ea5da (diff)
downloadpsutil-471b19d2aa799cd73bded23379e864dd35bec2b6.tar.gz
Fix typos
Diffstat (limited to 'psutil/arch')
-rw-r--r--psutil/arch/freebsd/sensors.c2
-rw-r--r--psutil/arch/osx/cpu.c2
-rw-r--r--psutil/arch/solaris/environ.c8
-rw-r--r--psutil/arch/solaris/v10/ifaddrs.c2
-rw-r--r--psutil/arch/windows/cpu.c6
-rw-r--r--psutil/arch/windows/process_utils.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/psutil/arch/freebsd/sensors.c b/psutil/arch/freebsd/sensors.c
index ce7b2d92..0042adbe 100644
--- a/psutil/arch/freebsd/sensors.c
+++ b/psutil/arch/freebsd/sensors.c
@@ -64,7 +64,7 @@ psutil_sensors_cpu_temperature(PyObject *self, PyObject *args) {
goto error;
current = DECIKELVIN_2_CELCIUS(current);
- // Return -273 in case of faliure.
+ // Return -273 in case of failure.
sprintf(sensor, "dev.cpu.%d.coretemp.tjmax", core);
if (sysctlbyname(sensor, &tjmax, &size, NULL, 0))
tjmax = 0;
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/environ.c b/psutil/arch/solaris/environ.c
index 482fe1fc..58afd63a 100644
--- a/psutil/arch/solaris/environ.c
+++ b/psutil/arch/solaris/environ.c
@@ -227,7 +227,7 @@ is_ptr_dereference_possible(psinfo_t info) {
/*
* Return pointer size according to psinfo_t structure
- * @param info a ponter to process info (psinfo_t) structure of the
+ * @param info a pointer to process info (psinfo_t) structure of the
* interesting process.
* @return pointer size (4 or 8).
*/
@@ -284,9 +284,9 @@ search_pointers_vector_size_offt(int fd, off_t offt, size_t ptr_size) {
/*
- * Derefence and read array of strings by psinfo_t.pr_argv pointer from
+ * Dereference and read array of strings by psinfo_t.pr_argv pointer from
* remote process.
- * @param info a ponter to process info (psinfo_t) structure of the
+ * @param info a pointer to process info (psinfo_t) structure of the
* interesting process
* @param procfs_path a cstring with path to mounted procfs filesystem.
* @param count a pointer to variable where to store amount of elements in
@@ -333,7 +333,7 @@ psutil_read_raw_args(psinfo_t info, const char *procfs_path, size_t *count) {
/*
* Dereference and read array of strings by psinfo_t.pr_envp pointer
* from remote process.
- * @param info a ponter to process info (psinfo_t) structure of the
+ * @param info a pointer to process info (psinfo_t) structure of the
* interesting process.
* @param procfs_path a cstring with path to mounted procfs filesystem.
* @param count a pointer to variable where to store amount of elements in
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/cpu.c b/psutil/arch/windows/cpu.c
index 20c01a0d..9d89e5bb 100644
--- a/psutil/arch/windows/cpu.c
+++ b/psutil/arch/windows/cpu.c
@@ -100,7 +100,7 @@ psutil_per_cpu_times(PyObject *self, PyObject *args) {
goto error;
}
- // gets cpu time informations
+ // gets cpu time information
status = NtQuerySystemInformation(
SystemProcessorPerformanceInformation,
sppi,
@@ -172,7 +172,7 @@ psutil_cpu_count_logical(PyObject *self, PyObject *args) {
if (ncpus != 0)
return Py_BuildValue("I", ncpus);
else
- Py_RETURN_NONE; // mimick os.cpu_count()
+ Py_RETURN_NONE; // mimic os.cpu_count()
}
@@ -248,7 +248,7 @@ psutil_cpu_count_cores(PyObject *self, PyObject *args) {
}
else {
psutil_debug("GetLogicalProcessorInformationEx() count was 0");
- Py_RETURN_NONE; // mimick os.cpu_count()
+ Py_RETURN_NONE; // mimic os.cpu_count()
}
return_none:
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;