diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-08-02 03:31:11 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-08-02 03:31:11 +0800 |
commit | 9adeb175f8a0a95959adbbfb3cd8051714e7f5da (patch) | |
tree | 3ba70f4b448ba8ef5698d712d3931d928e7232fd /devel/libgtop2 | |
parent | 205f4214b5a2cc689065023c10b12ef24202824c (diff) | |
download | marcuscom-ports-9adeb175f8a0a95959adbbfb3cd8051714e7f5da.tar marcuscom-ports-9adeb175f8a0a95959adbbfb3cd8051714e7f5da.tar.gz marcuscom-ports-9adeb175f8a0a95959adbbfb3cd8051714e7f5da.tar.bz2 marcuscom-ports-9adeb175f8a0a95959adbbfb3cd8051714e7f5da.tar.lz marcuscom-ports-9adeb175f8a0a95959adbbfb3cd8051714e7f5da.tar.xz marcuscom-ports-9adeb175f8a0a95959adbbfb3cd8051714e7f5da.tar.zst marcuscom-ports-9adeb175f8a0a95959adbbfb3cd8051714e7f5da.zip |
Fix process stime and cstime calculation.
Submitted by: Caelian on #freebsd-gnome
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4369 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop2')
-rw-r--r-- | devel/libgtop2/Makefile | 3 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-systeps::freebsd::proctime.c | 16 |
2 files changed, 16 insertions, 3 deletions
diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile index 78e23f9eb..81dd1b7d5 100644 --- a/devel/libgtop2/Makefile +++ b/devel/libgtop2/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/devel/libgtop2/Makefile,v 1.43 2005/07/13 23:39:37 marcus Exp $ +# $MCom: ports/devel/libgtop2/Makefile,v 1.44 2005/07/26 02:23:03 marcus Exp $ # PORTNAME= libgtop2 PORTVERSION= 2.11.90 +PORTREVISION= 1 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.11 diff --git a/devel/libgtop2/files/patch-systeps::freebsd::proctime.c b/devel/libgtop2/files/patch-systeps::freebsd::proctime.c index da0908ce7..e237bd0c0 100644 --- a/devel/libgtop2/files/patch-systeps::freebsd::proctime.c +++ b/devel/libgtop2/files/patch-systeps::freebsd::proctime.c @@ -1,5 +1,5 @@ ---- sysdeps/freebsd/proctime.c Wed Feb 23 17:20:45 2005 -+++ sysdeps/freebsd/proctime.c.orig Sat Mar 19 02:38:31 2005 +--- sysdeps/freebsd/proctime.c.orig Wed Feb 23 00:20:45 2005 ++++ sysdeps/freebsd/proctime.c Mon Aug 1 12:02:29 2005 @@ -146,8 +146,10 @@ /* Get the process information */ @@ -13,3 +13,15 @@ #if defined(__FreeBSD__) && (__FreeBSD_version >= 500013) buf->rtime = pinfo [0].ki_runtime; +@@ -193,9 +195,9 @@ + if ((pinfo [0].ki_flag & P_INMEM)) { + #endif + buf->utime = pinfo [0].ki_runtime; +- buf->stime = 0; /* XXX */ ++ buf->stime = tv2sec (pinfo [0].ki_rusage.ru_stime); + buf->cutime = tv2sec (pinfo [0].ki_childtime); +- buf->cstime = 0; /* XXX */ ++ buf->cstime = tv2sec (pinfo [0].ki_rusage_ch.ru_stime); + buf->start_time = tv2sec (pinfo [0].ki_start); + buf->flags = _glibtop_sysdeps_proc_time_user; + } |