[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/ksysguard/ksysguardd/Linux
From: Benoit Walter <b.walter () free ! fr>
Date: 2004-03-08 23:47:29
Message-ID: 20040308234729.A543499AC () office ! kde ! org
[Download RAW message or body]
CVS commit by bwalter:
Apply patch from Riku Voipio to use sysconf(_SC_PAGESIZE) instead of
PAGE_SIZE.
CCMAIL: 75298-done@bugs.kde.org
CCMAIL: tokoe@kde.org
M +1 -6 ProcessList.c 1.49
--- kdebase/ksysguard/ksysguardd/Linux/ProcessList.c #1.48:1.49
@@ -28,5 +28,4 @@
#include <sys/time.h>
#include <sys/resource.h>
-#include <sys/user.h>
#include <time.h>
#include <unistd.h>
@@ -40,8 +39,4 @@
#include "ProcessList.h"
-#ifndef PAGE_SIZE /* Needed for SPARC */
-#include <asm/page.h>
-#endif
-
#define BUFSIZE 1024
#define TAGSIZE 32
@@ -248,5 +243,5 @@ static int updateProcess( int pid )
sprintf( ps->status, "Unknown: %c", status );
- ps->vmRss = ( ps->vmRss + 3 ) * PAGE_SIZE;
+ ps->vmRss = ( ps->vmRss + 3 ) * sysconf(_SC_PAGESIZE);
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic