ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/residentMem.c
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/residentMem.c (file contents):
Revision 2041 by tim, Wed Feb 16 21:13:48 2005 UTC vs.
Revision 2263 by tim, Wed Jul 13 15:54:00 2005 UTC

# Line 23 | Line 23 | double residentMem () {
23  
24    STR_DEFINE(psPath, PSCOMMAND );
25  
26 <  // null terminated string is one longer....
26 >  
27    strncpy(pscommand, psPath, strlen(psPath)+1);
28  
29   #ifdef PSTYPE_IS_BSD
# Line 52 | Line 52 | double residentMem () {
52    pclose(procresults);
53  
54   #ifdef __sgi
55 <  // Damn IRIX machines uses pages for RSS and pagesize is variable
56 <  // depending on version of the OS.
55 >  
56 >  
57    totRSS *= getpagesize() / 1024;
58   #endif
59  
60 <  //return in byte
60 >  
61    totRSS *= 1024;
62    return(totRSS);
63  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines