From 9f6fe805ad1ce599dfc2650244b6c25e2d1185f2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 28 Jun 2007 22:51:51 +0000 Subject: [PATCH] - API: set fraction_done to 1 in boinc_finish() api/ boinc_api.C svn path=/trunk/boinc/; revision=13050 --- api/boinc_api.C | 3 ++- checkin_notes | 6 ++++++ doc/boinc_news.php | 10 ++++++++++ doc/projects.inc | 16 ++++++++-------- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/api/boinc_api.C b/api/boinc_api.C index 45f30a5350..6da8c40210 100644 --- a/api/boinc_api.C +++ b/api/boinc_api.C @@ -384,6 +384,7 @@ int boinc_finish(int status) { double total_cpu; total_cpu = boinc_worker_thread_cpu_time(); total_cpu += initial_wu_cpu_time; + fraction_done = 1; // NOTE: the app_status slot may already contain a message. // So retry a couple of times. @@ -407,7 +408,7 @@ int boinc_finish(int status) { boinc_exit(status); - return(0); // doh... we never get here + return 0; // never reached } diff --git a/checkin_notes b/checkin_notes index 8aaea644b0..e1886e1699 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6849,3 +6849,9 @@ Charlie 28 June 2007 file_names.C lib/ shmem.C + +David 28 June 2007 + - API: set fraction_done to 1 in boinc_finish() + + api/ + boinc_api.C diff --git a/doc/boinc_news.php b/doc/boinc_news.php index 0be39356ec..d4911df776 100644 --- a/doc/boinc_news.php +++ b/doc/boinc_news.php @@ -1,6 +1,16 @@ script + that provides command completion in both boinc_cmd and boinc_client + (thanks to Frank S. Thomas)." +), +array("June 27, 2007", + "Help increase volunteer computing power - + publicize BOINC by writing to computer magazines." +), array("June 26, 2007", "There's a great new statistics site, BOINC All Project Stats. diff --git a/doc/projects.inc b/doc/projects.inc index 73146e657e..3e2f775e8a 100644 --- a/doc/projects.inc +++ b/doc/projects.inc @@ -3,14 +3,14 @@ $biomed = array( "Biology and Medicine", array( - array( - "Proteins@Home", - "http://biology.polytechnique.fr/proteinsathome", - "Ecole Polytechnique, Paris", - "Protein structure prediction", - "By joining Proteins@Home, you will be part of a large-scale protein structure prediction project and help to advance an important area of science. By increasing our knowledge of proteins, you will contribute to a better understanding of many diseases and pathologies, and to progress in both medicine and technology. Proteins@Home is not for profit.", - "proteinsathome.gif" - ), +// array( +// "Proteins@Home", +// "http://biology.polytechnique.fr/proteinsathome", +// "Ecole Polytechnique, Paris", +// "Protein structure prediction", +// "By joining Proteins@Home, you will be part of a large-scale protein structure prediction project and help to advance an important area of science. By increasing our knowledge of proteins, you will contribute to a better understanding of many diseases and pathologies, and to progress in both medicine and technology. Proteins@Home is not for profit.", +// "proteinsathome.gif" +// ), array( "Malariacontrol.net", "http://www.malariacontrol.net",