From c4ecb8b7feb48063de4ebae350bb004babcac7ea Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 11 Jun 2003 23:12:50 +0000 Subject: [PATCH] result summary on admin web svn path=/trunk/boinc/; revision=1386 --- sched/timeout_check.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sched/timeout_check.C b/sched/timeout_check.C index 1b0fc52eca..d0cbbfa0bf 100644 --- a/sched/timeout_check.C +++ b/sched/timeout_check.C @@ -174,6 +174,7 @@ void handle_wu(DB_WORKUNIT& wu) { // clean up any incomplete uploads result.file_delete_state = FILE_DELETE_READY; result.server_state = RESULT_SERVER_STATE_OVER; + result.received_time = time(0); result.outcome = RESULT_OUTCOME_NO_REPLY; result.update(); } @@ -219,6 +220,7 @@ void handle_wu(DB_WORKUNIT& wu) { result = results[i]; if (result.server_state == RESULT_SERVER_STATE_UNSENT) { result.server_state = RESULT_SERVER_STATE_OVER; + result.received_time = time(0); result.outcome = RESULT_OUTCOME_DIDNT_NEED; result.update(); } @@ -367,7 +369,7 @@ int main(int argc, char** argv) { // Call lock_file after fork(), because file locks are not always inherited if (lock_file(LOCKFILE)) { - write_log("Another copy of timeout_check is already running\n", MSG_NORMAL); + fprintf(stderr, "Another copy of timeout_check is already running\n"); exit(1); }