diff --git a/checkin_notes b/checkin_notes index b8da363fc2..9a2b157e21 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5014,3 +5014,12 @@ David 19 June 2008 lib/ diagnostics.C + +David 20 June 2008 + - client (Win): if running as service, and service is suspended/resumed, + restore previous run state rather than going to auto. + - client: improve startup messages (non-system user??) + + client/ + client_state.C + main.C diff --git a/client/client_state.C b/client/client_state.C index 7f2875d89e..cf5432458e 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -195,34 +195,18 @@ int CLIENT_STATE::init() { msg_printf(NULL, MSG_INFO, "Libraries: %s", curl_version()); if (executing_as_daemon) { - msg_printf(NULL, MSG_INFO, "Executing as a daemon"); + msg_printf(NULL, MSG_INFO, "Running as a daemon"); } relative_to_absolute("", buf); msg_printf(NULL, MSG_INFO, "Data directory: %s", buf); - // if we are running as anybody other than localsystem - // and executing as a daemon then app graphics won't work. - // display a note at startup reminding user of that. - // #ifdef _WIN32 DWORD buf_size = sizeof(buf); LPTSTR pbuf = buf; GetUserName(pbuf, &buf_size); - if (executing_as_daemon && (strcmp("SYSTEM", pbuf))) { - msg_printf(NULL, MSG_INFO, - "BOINC is running as a service and as a non-system user." - ); - } -#endif - -#ifdef __APPLE__ - if (executing_as_daemon) { - msg_printf(NULL, MSG_INFO, - "BOINC is running as a daemon." - ); - } + msg_printf(NULL, MSG_INFO, "Running under account %s", pbuf); #endif parse_account_files(); diff --git a/client/main.C b/client/main.C index a325a3f253..35b024abf8 100644 --- a/client/main.C +++ b/client/main.C @@ -490,8 +490,8 @@ int boinc_main_loop() { requested_suspend = false; } if (requested_resume) { - gstate.run_mode.set(RUN_MODE_AUTO, 0); - gstate.network_mode.set(RUN_MODE_AUTO, 0); + gstate.run_mode.set(RUN_MODE_RESTORE, 0); + gstate.network_mode.set(RUN_MODE_RESTORE, 0); requested_resume = false; } #endif diff --git a/doc/projects.inc b/doc/projects.inc index a85f2a66b0..55ff2ac264 100644 --- a/doc/projects.inc +++ b/doc/projects.inc @@ -13,7 +13,7 @@ $biomed = array( ), array( "Superlink@Technion", - "http://cbl-link02.cs.technion.ac.il/superlinkattechnion/", + "http://cbl-boinc-server2.cs.technion.ac.il/superlinkattechnion/", "Technion, Israel", "Genetic linkage analysis", "Superlink@Technion helps geneticists all over the world find disease-provoking genes causing some types of diabetes, hypertension (high blood pressure), cancer, schizophrenia and many others.", diff --git a/html/inc/bolt_select.inc b/html/inc/bolt_select.inc index 1ef27a8745..34c352c124 100644 --- a/html/inc/bolt_select.inc +++ b/html/inc/bolt_select.inc @@ -30,6 +30,7 @@ class BoltSelect extends BoltSet { $state_rec = $iter->state[$this->name]; $child_name = $state_rec['child_name']; + echo "FINISHED: $child_name"; $now = time(); BoltSelectFinished::insert("(user_id, course_id, end_time, name, selected_unit, view_id) values ($user->id, $course->id, $now, '$this->name', '$child_name', $view->id)"); parent::finished($iter); diff --git a/html/user/bolt_compare.php b/html/user/bolt_compare.php index 9658c4fc78..50807d055f 100644 --- a/html/user/bolt_compare.php +++ b/html/user/bolt_compare.php @@ -1,5 +1,7 @@ user_id; if (!array_key_exists($uid, $a)) continue; - if ($sf->end_time > $a[$uid]->xr->create_time) continue; - if (!is_set($a[$uid]->sf || $sf->create_time > $a[$uid]->sf.create_time) { - $a[$uid]->sf = $sf; + $x = $a[$uid]; + $xr = $x->xr; + if ($sf->end_time > $xr->create_time) continue; + $s = $x->sf; + if (!is_set($x->sf) || $sf->create_time > $s.create_time) { + $x->sf = $sf; + $a[$uid] = $x; } } $filename = "compare_snapshot_$course_id_$select_name_$xset_name.json"; @@ -54,7 +60,6 @@ function read_snapshot($course_id, $select_name, $xset_name) { // show comparison results for a given select/xset pair. // function show_comparison($ss, $filter, $breakdown) { - // } function show_form() { @@ -63,7 +68,6 @@ function show_form() { } function show_results() { - } // get names of units of a given type diff --git a/html/user/bolt_course_sample.php b/html/user/bolt_course_sample.php index 93199b32e9..107530e5be 100644 --- a/html/user/bolt_course_sample.php +++ b/html/user/bolt_course_sample.php @@ -99,7 +99,7 @@ function xset_with_review() { function sample_xset() { return exercise_set( - name('exercise set 1'), + name('sample exercise set'), number(1), exercise( name('exercise 1'),