mirror of https://github.com/BOINC/boinc.git
- scheduler: fix bone-head mistake in HR code
svn path=/trunk/boinc/; revision=14715
This commit is contained in:
parent
124280cd00
commit
a323eba986
|
@ -1294,3 +1294,11 @@ Rom Feb 9 2008
|
|||
|
||||
client/
|
||||
http_curl.C
|
||||
|
||||
David Feb 9 2008
|
||||
- scheduler: fix bone-head mistake in HR code
|
||||
|
||||
client/
|
||||
app_control.C
|
||||
sched/
|
||||
sched_hr.C
|
||||
|
|
|
@ -217,7 +217,7 @@ void ACTIVE_TASK::handle_premature_exit(bool& will_restart) {
|
|||
if (premature_exit_count > 100) {
|
||||
set_task_state(PROCESS_ABORTED, "handle_premature_exit");
|
||||
result->exit_status = ERR_TOO_MANY_EXITS;
|
||||
gstate.report_result_error(*result, "too many normally harmless exit(s)");
|
||||
gstate.report_result_error(*result, "too many exit(0)s");
|
||||
result->set_state(RESULT_ABORTED, "handle_premature_exit");
|
||||
} else {
|
||||
will_restart = true;
|
||||
|
|
|
@ -43,6 +43,7 @@ The colors are based on U.C. Berkeley's blue-and-gold colors.
|
|||
<li> <a href=logo/boinc_logo.ai>Adobe Illustrator (.ai)</a>
|
||||
<li> <a href=logo/boinc_logo.cdr>Vector graphics (.cdr)</a>
|
||||
<li> <a href=logo/boinc_logo.pdf>Adobe PDF (.cdr)</a>
|
||||
<li> <a href=logo/boinc_logo.svg>Scalable Vector Graphics (.svg)</a>
|
||||
<li> <a href=logo/boinc_logo.png>1280x535, transparent background (.png)</a>
|
||||
<li> <a href=logo/boinc_logo.wmf>Windows meta-file (.wmf)</a>
|
||||
<li> <a href=logo/favicon.gif>Favicon (GIFF)</a>
|
||||
|
|
|
@ -50,6 +50,7 @@ function show_view($view) {
|
|||
<br><a href=bolt_sched.php?$qs>Answer page</a>";
|
||||
}
|
||||
echo "<tr>
|
||||
<td valign=top>$view->id</td>
|
||||
<td valign=top>".time_str($view->start_time)."</td>
|
||||
<td valign=top>$dur</td>
|
||||
<td valign=top>$view->item_name</td>
|
||||
|
@ -69,7 +70,7 @@ function show_views() {
|
|||
$views = BoltView::enum("user_id=$user->id and course_id=$course->id order by id desc");
|
||||
start_table();
|
||||
|
||||
table_header("Time", "Duration", "Item", "Mode",
|
||||
table_header("ID", "Time", "Duration", "Item", "Mode",
|
||||
// "Phase",
|
||||
"Action");
|
||||
foreach ($views as $view) {
|
||||
|
|
|
@ -338,7 +338,12 @@ case 'prev':
|
|||
$iter = new BoltIter($course_doc);
|
||||
$iter->decode_state($view->state);
|
||||
$iter->at();
|
||||
$mode = default_mode($iter->item);
|
||||
$mode = $view->mode;
|
||||
if ($mode == BOLT_MODE_ANSWER) {
|
||||
$v2 = BoltView::lookup_id($view->prev_view_id);
|
||||
$result = BoltResult::lookup_id($v2->result_id);
|
||||
$bolt_ex_query_string = $result->response;
|
||||
}
|
||||
$view_id = create_view($iter, $mode, $view->prev_view_id);
|
||||
show_item($iter, $view_id, $view->prev_view_id, $mode);
|
||||
} else {
|
||||
|
|
|
@ -76,7 +76,7 @@ bool already_sent_to_different_platform_careful(
|
|||
) {
|
||||
DB_WORKUNIT db_wu;
|
||||
int retval, wu_hr_class;
|
||||
char buf[256];
|
||||
char buf[256], buf2[256];
|
||||
|
||||
// reread hr_class field from DB in case it's changed
|
||||
//
|
||||
|
@ -99,8 +99,9 @@ bool already_sent_to_different_platform_careful(
|
|||
// do a "careful update" to make sure the WU's hr_class hasn't
|
||||
// changed since we read it earlier
|
||||
//
|
||||
sprintf(buf, "hr_class=%d", "hr_class=%d", host_hr_class, wu_hr_class);
|
||||
retval = db_wu.update_field(buf);
|
||||
sprintf(buf, "hr_class=%d", host_hr_class);
|
||||
sprintf(buf2, "hr_class=%d", wu_hr_class);
|
||||
retval = db_wu.update_field(buf, buf2);
|
||||
if (retval) return true;
|
||||
}
|
||||
return wreq.hr_reject_temp;
|
||||
|
|
Loading…
Reference in New Issue