diff --git a/checkin_notes b/checkin_notes index 85bcb08dc3..b2459d905e 100755 --- a/checkin_notes +++ b/checkin_notes @@ -3931,3 +3931,6 @@ David Mar 20 2003 edit_host_action.php edit_host_form.php +David Mar 21 2003 + - fixed bugs in host merge + - (Eric) fix secs-per-day problem in credit diff --git a/html/user/beta_test_instructions.html b/html/user/beta_test_instructions.html index 3faa92aaf3..4a78659639 100644 --- a/html/user/beta_test_instructions.html +++ b/html/user/beta_test_instructions.html @@ -22,15 +22,9 @@ This version of the client has no GUI, and writes to stderr and stdout. Please include any suspicious-looking text in your bug reports.
-January 23, 2003
-The stripchart diagnostic program is now available for public use.
-Right now we only have 4 charts, but more will be added shortly.
-For more information, read the documentation.
-
-
-January 16, 2003
-BOINC 0.08 is released, which should fix some of the reported bugs.
+For news on BOINC, visit
+http://boinc.berkeley.edu
Please report bugs by sending email to the boinc-beta mailing list on SourceForge.net. To join this list, go to http://lists.sourceforge.net/lists/listinfo/boinc-beta. -"; + diff --git a/html/user/host_edit_action.php b/html/user/host_edit_action.php index a246a6b712..ae474e9ee7 100644 --- a/html/user/host_edit_action.php +++ b/html/user/host_edit_action.php @@ -28,10 +28,20 @@ exit(); } - $result = mysql_query("update result set hostid=$targetid where hostid=$hostid"); + // update the database: + // - add credit from old to new host + // - change results to refer to new host + // - delete old host + + $t = $old_host->total_credit + $new_host->total_credit; + $a = $old_host->expavg_credit + $new_host->expavg_credit; + $result = mysql_query("update host set total_credit=$t, expavg_credit=$a where id=$new_host->id"); if ($result) { - if ($hostid != $targetid) { - $result = mysql_query("delete from host where id=$hostid"); + $result = mysql_query("update result set hostid=$targetid where hostid=$hostid"); + if ($result) { + if ($hostid != $targetid) { + $result = mysql_query("delete from host where id=$hostid"); + } } } if ($result) { diff --git a/html/user/host_edit_form.php b/html/user/host_edit_form.php index 50d1c5a116..2722dd3578 100644 --- a/html/user/host_edit_form.php +++ b/html/user/host_edit_form.php @@ -17,24 +17,25 @@ if (!$host || $host->userid != $user->id) { exit(); } +$t = time_str($host->create_time); echo " Sometimes BOINC assigns separate identities to the same host. - You can correct this by merging the old - identity with the newer one - (the one that has contacted the server most recently). + You can correct this by merging old identities with the newest one.