*** empty log message ***

svn path=/trunk/boinc/; revision=1980
This commit is contained in:
David Anderson 2003-08-04 23:44:12 +00:00
parent d7ffc0d30b
commit da5cef1b14
2 changed files with 6 additions and 6 deletions

View File

@ -288,17 +288,17 @@ function validate_state_str($s) {
}
function client_version_string($client_version_num) {
if ($result->client_version_num) {
if (!$client_version_num) {
return '---';
} else {
return sprintf("%.2f", $client_version_num/100);
}
}
function outcome_color($outcome) {
function outcome_color($s) {
switch($s) {
case 1: return 'darkgreen'; // "Success"
case 3: return 'darkred'; // "Client error"
case 1: return '33cc33'; // "Success"
case 3: return 'ff0000'; // "Client error"
}
return 'white';
}

View File

@ -39,7 +39,7 @@
mysql_free_result($result);
// start_table();
echo "<table width=400>";
echo "<table border=2 cellpadding=4 width=400\n";
echo "<tr><th>Server state</th><th># results</th></tr>\n";
for ($ss=1; $ss<6; $ss++) {
if ($server_state[$ss] == 0) {
@ -60,7 +60,7 @@
}
$h = result_outcome_string($ro);
$color = outcome_color($ro);
echo "<tr><td align=right bgcolor=$color>$h</td><td>$x</td></tr>\n";
echo "<tr bgcolor=$color><td align=right>$h</td><td>$x</td></tr>\n";
}
echo "<tr></tr>";