summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-08-30 12:37:31 -0300
committerHisham <hisham@gobolinux.org>2016-08-30 12:37:31 -0300
commitd4a8023b7236c6fbd2e8f03adf2e1c1c2c823cfb (patch)
treeceb2ae0fdad991eb3313cccd62b918fc9d35edec /freebsd
parentcceab15b9dbdc2f0914c8d479cefa429d1c0daaf (diff)
Fix typos, by @Gelma.
Closes #546.
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/FreeBSDProcessList.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c
index b58e6e60..c0cb06b1 100644
--- a/freebsd/FreeBSDProcessList.c
+++ b/freebsd/FreeBSDProcessList.c
@@ -151,10 +151,10 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, ui
fpl->cp_time_n = xCalloc(cpus, sizeof_cp_time_array);
len = sizeof_cp_time_array;
- // fetch intial single (or average) CPU clicks from kernel
+ // fetch initial single (or average) CPU clicks from kernel
sysctl(MIB_kern_cp_time, 2, fpl->cp_time_o, &len, NULL, 0);
- // on smp box, fetch rest of intial CPU's clicks
+ // on smp box, fetch rest of initial CPU's clicks
if (cpus > 1) {
len = 2; sysctlnametomib("kern.cp_times", MIB_kern_cp_times, &len);
fpl->cp_times_o = xCalloc(cpus, sizeof_cp_time_array);
@@ -175,7 +175,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, ui
len = sizeof(kernelFScale);
if (sysctlbyname("kern.fscale", &kernelFScale, &len, NULL, 0) == -1) {
- //sane default for kernel provded CPU precentage scaling, at least on x86 machines, in case this sysctl call failed
+ //sane default for kernel provided CPU percentage scaling, at least on x86 machines, in case this sysctl call failed
kernelFScale = 2048;
}
@@ -459,17 +459,17 @@ void ProcessList_goThroughEntries(ProcessList* this) {
fp->jname = FreeBSDProcessList_readJailName(kproc);
} else {
if(fp->jid != kproc->ki_jid) {
- // proces can enter jail anytime
+ // process can enter jail anytime
fp->jid = kproc->ki_jid;
free(fp->jname);
fp->jname = FreeBSDProcessList_readJailName(kproc);
}
if (proc->ppid != kproc->ki_ppid) {
- // if there are reapers in the system, proces can get reparented anytime
+ // if there are reapers in the system, process can get reparented anytime
proc->ppid = kproc->ki_ppid;
}
if(proc->st_uid != kproc->ki_uid) {
- // some proceses change users (eg. to lower privs)
+ // some processes change users (eg. to lower privs)
proc->st_uid = kproc->ki_uid;
proc->user = UsersTable_getRef(this->usersTable, proc->st_uid);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy