mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4873
This commit is contained in:
parent
e171a34623
commit
85ea5d8ced
|
@ -21447,3 +21447,8 @@ Rom 16 Dec 2004
|
||||||
win_build/installerv2/redist/windows
|
win_build/installerv2/redist/windows
|
||||||
BOINC.vbs
|
BOINC.vbs
|
||||||
|
|
||||||
|
David 16 Dec 2004
|
||||||
|
- bug fix: resident-set size on Linux was wrong
|
||||||
|
|
||||||
|
lib/
|
||||||
|
mem_usage.C
|
||||||
|
|
|
@ -43,6 +43,7 @@ The founder of a team has some additional capabilities:
|
||||||
<li> Edit the team's attributes.
|
<li> Edit the team's attributes.
|
||||||
<li> View the email addresses of all team members.
|
<li> View the email addresses of all team members.
|
||||||
<li> Remove members from the team.
|
<li> Remove members from the team.
|
||||||
|
<li> Change the founder (to any current member).
|
||||||
<li> Disband the team.
|
<li> Disband the team.
|
||||||
</ul>
|
</ul>
|
||||||
";
|
";
|
||||||
|
|
|
@ -91,12 +91,13 @@ int mem_usage(double& vm_usage, double& resident_set) {
|
||||||
// read virtual memory size in bytes.
|
// read virtual memory size in bytes.
|
||||||
//
|
//
|
||||||
vm_usage = atof(p);
|
vm_usage = atof(p);
|
||||||
|
p = strchr(p, ' ');
|
||||||
|
|
||||||
// read resident set size: number of pages the process has in
|
// read resident set size: number of pages the process has in
|
||||||
// real memory, minus 3 for administrative purposes.
|
// real memory, minus 3 for administrative purposes.
|
||||||
//
|
//
|
||||||
tmp = strtol(p, 0, 0); // in pages
|
tmp = strtol(p, 0, 0);
|
||||||
resident_set = (double)(tmp + 3)*getpagesize(); // getpagesize() is bytes/page
|
resident_set = (double)(tmp + 3)*getpagesize();
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue