# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |