diff options
author | Timothy Pearson <[email protected]> | 2014-10-12 17:56:39 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-10-12 17:56:39 -0500 |
commit | e2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f (patch) | |
tree | b2717634a496f982c82b13c6aa67252caad85268 /kicker/applets | |
parent | 1346f6898707e6a4d95abee07c3d1608fc056998 (diff) | |
parent | 68cfc4fec0fed7ef4da9f03da68bd61900654ee3 (diff) | |
download | tdebase-e2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f.tar.gz tdebase-e2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'kicker/applets')
-rw-r--r-- | kicker/applets/naughty/NaughtyProcessMonitor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kicker/applets/naughty/NaughtyProcessMonitor.cpp b/kicker/applets/naughty/NaughtyProcessMonitor.cpp index c71ba6e2f..dbd3a0580 100644 --- a/kicker/applets/naughty/NaughtyProcessMonitor.cpp +++ b/kicker/applets/naughty/NaughtyProcessMonitor.cpp @@ -409,12 +409,21 @@ NaughtyProcessMonitor::pidList() const d->cacheLoadMap_.clear () ; d->uidMap_.clear () ; for (i = 0; i < nentries; i++) { +#ifdef __OpenBSD__ + l << (unsigned long) kp[i].p_pid ; + d->cacheLoadMap_.insert (kp[i].p_pid, + (kp[i].p_uticks + + kp[i].p_sticks)) ; + d->uidMap_.insert (kp[i].p_pid, + kp[i].p_uid) ; +#else l << (unsigned long) kp[i].kp_proc.p_pid ; d->cacheLoadMap_.insert (kp[i].kp_proc.p_pid, (kp[i].kp_proc.p_uticks + kp[i].kp_proc.p_sticks)) ; d->uidMap_.insert (kp[i].kp_proc.p_pid, kp[i].kp_eproc.e_ucred.cr_uid) ; +#endif } free (kp) ; |