minor changes to host page and expanations in prefs page

svn path=/trunk/boinc/; revision=320
This commit is contained in:
Barry Luong 2002-08-13 23:27:49 +00:00
parent 9ea5ed34a4
commit 0b215dcbf4
3 changed files with 14 additions and 8 deletions

View File

@ -81,13 +81,13 @@ function show_host($host) {
row("<b>Total Disk Space: </b>", "$x GB");
$x = $host->d_free/(1024*1024*1024);
row("<b>Free Disk Space: </b>", "$x GB");
row("<b>Avg Network Bandwidth:<br>(upstream) </b>", "$host->n_bwup bytes/sec");
row("<b>Avg Network Bandwidth:<br>(downstream) </b>", "$host->n_bwdown bytes/sec");
row("<b>RPC seqno: </b>", $host->rpc_seqno);
row("<b>RPC time: </b>", time_str($host->rpc_time));
row("<b>On fraction: </b>", $host->on_frac);
row("<b>Connected fraction: </b>", $host->connected_frac);
row("<b>Active fraction: </b>", $host->active_frac);
row("<b>Avg network bandwidth:<br>(upstream) </b>", "$host->n_bwup bytes/sec");
row("<b>Avg network bandwidth:<br>(downstream) </b>", "$host->n_bwdown bytes/sec");
row("<b>Number of times client has contacted server: </b>", $host->rpc_seqno);
row("<b>Last time contacted server: </b>", time_str($host->rpc_time));
row("<b>% of time client on: </b>", 100*$host->on_frac." %");
row("<b>% of time client connected: </b>", 100*$host->connected_frac." %");
row("<b>% of time client active: </b>", 100*$host->active_frac." %");
echo "</table>\n";

View File

@ -196,7 +196,7 @@ function prefs_show_project($project) {
row("<b>Email Address: </b>", $project->email_addr);
row("<b>Authenticator: </b>", $project->authenticator);
row("<b>Resource Share: </b>", $project->resource_share);
row("<b>Project Specific: </b>", htmlspecialchars($project->project_specific));
row("<b>Project Specific Preferences: </b>", htmlspecialchars($project->project_specific));
}
function prefs_show_projects($prefs) {
@ -281,6 +281,8 @@ function prefs_form_projects($prefs) {
echo "</table>";
}
echo "<hr><a href=prefs_add_project_form.php>Add project</a>\n";
echo "<p>";
echo "Whenever you join a new project, remember to add that project with the authenticator that you get from that project to your home project (the first project) you joined.";
echo "<br>";
}

View File

@ -10,6 +10,10 @@
if ($user) {
page_head("Preferences");
$prefs = prefs_parse($user->prefs);
echo "<p>This page is where you can edit your preferences. There are both preferences about when you want your client to start up and how much work should be buffered for it and how much disk space you want to allow this project to use.";
echo "<p><b>Important: Remember when you join a new project, you must add it to the list of projects on your home project, that is, the first project you joined.</b>";
print_prefs_display($prefs);
} else {
print_login_form();