summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-12 17:56:39 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-12 17:56:39 -0500
commite2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f (patch)
treeb2717634a496f982c82b13c6aa67252caad85268 /kicker
parent1346f6898707e6a4d95abee07c3d1608fc056998 (diff)
parent68cfc4fec0fed7ef4da9f03da68bd61900654ee3 (diff)
downloadtdebase-e2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f.tar.gz
tdebase-e2c5ea4cdad7dbb560be87a7d3c894e980b5ab6f.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'kicker')
-rw-r--r--kicker/applets/naughty/NaughtyProcessMonitor.cpp9
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) ;