diff --git a/checkin_notes b/checkin_notes index 2889b2360b..24cb0d03ee 100755 --- a/checkin_notes +++ b/checkin_notes @@ -16341,3 +16341,15 @@ David 12 Aug 2004 db_dump.C tools/ dir_hier_move.C + +David 13 Aug 2004 + - use 0 (not -1) as null value for unix times + - comment out remaining disk management code + - compile error + + client/ + client_types.C,h + cs_scheduler.C + scheduler_op.C + sched/ + server_types.C diff --git a/client/client_types.C b/client/client_types.C index d2f37fb263..5dcf8ba7d2 100644 --- a/client/client_types.C +++ b/client/client_types.C @@ -554,9 +554,11 @@ FILE_INFO::FILE_INFO() { strcpy(signed_xml, ""); strcpy(xml_signature, ""); strcpy(file_signature, ""); +#if 0 priority = P_LOW; time_last_used = time(0); exp_date = time(0) + 60*SECONDS_PER_DAY; +#endif } FILE_INFO::~FILE_INFO() { @@ -615,7 +617,7 @@ int FILE_INFO::parse(MIOFILE& in, bool from_server) { char buf[256], buf2[1024]; STRING256 url; PERS_FILE_XFER *pfxp; - int retval, exp_days; + int retval; SCOPE_MSG_LOG scope_messages(log_messages, CLIENT_MSG_LOG::DEBUG_STATE); @@ -662,12 +664,15 @@ int FILE_INFO::parse(MIOFILE& in, bool from_server) { else if (match_tag(buf, "")) upload_when_present = true; else if (match_tag(buf, "")) sticky = true; else if (match_tag(buf, "")) signature_required = true; +#if 0 else if (parse_int(buf, "", (int&)time_last_used)) continue; else if (parse_int(buf, "", priority)) continue; else if (parse_int(buf, "", (int&)exp_date)) continue; else if (parse_int(buf, "", exp_days)) { - exp_date = time(0) + exp_days*SECONDS_PER_DAY; - } else if (match_tag(buf, "")) { + exp_date = time(0) + exp_days*SECONDS_PER_DAY; + } +#endif + else if (match_tag(buf, "")) { pfxp = new PERS_FILE_XFER; retval = pfxp->parse(in); if (!retval) { @@ -722,9 +727,11 @@ int FILE_INFO::write(MIOFILE& out, bool to_server) { if (sticky) out.printf(" \n"); if (signature_required) out.printf(" \n"); if (strlen(file_signature)) out.printf(" \n%s\n", file_signature); +#if 0 if (time_last_used) out.printf(" %d\n", time_last_used); if (priority) out.printf(" %d\n", priority); if (exp_date) out.printf(" %ld\n", exp_date); +#endif } for (i=0; i%s\n", urls[i].text); @@ -746,8 +753,10 @@ int FILE_INFO::write(MIOFILE& out, bool to_server) { out.printf(" \n%s\n", error_msg.c_str()); } out.printf("\n"); +#if 0 if (to_server) - update_time(); + update_time(); // huh?? +#endif return 0; } @@ -855,6 +864,7 @@ int FILE_INFO::merge_info(FILE_INFO& new_info) { upload_when_present = new_info.upload_when_present; +#if 0 if (new_info.priority > priority) { priority = new_info.priority; } @@ -862,6 +872,7 @@ int FILE_INFO::merge_info(FILE_INFO& new_info) { if (new_info.exp_date > exp_date) { exp_date = new_info.exp_date; } +#endif if (max_nbytes <= 0 && new_info.max_nbytes) { max_nbytes = new_info.max_nbytes; sprintf(buf, " %.0f\n", new_info.max_nbytes); @@ -893,11 +904,13 @@ bool FILE_INFO::had_failure(int& failnum) { return false; } +#if 0 // Sets the time_last_used to be equal to the current time int FILE_INFO::update_time() { time_last_used = time(0); return 0; } +#endif // Parse XML based app_version information, usually from client_state.xml // @@ -1318,10 +1331,14 @@ void RESULT::reset_files() { if (fip->upload_when_present) { fip->uploaded = false; } +#if 0 fip->update_time(); +#endif } for (i=0; i < wup->input_files.size(); i++) { fip = wup->input_files[i].file_info; +#if 0 fip->update_time(); +#endif } } diff --git a/client/client_types.h b/client/client_types.h index 112644a823..a3b2127383 100644 --- a/client/client_types.h +++ b/client/client_types.h @@ -84,9 +84,11 @@ public: char file_signature[MAX_BLOB_LEN]; // if the file itself is signed (for executable files) // this is the signature +#if 0 int priority; time_t time_last_used; // time of last use of FILE_INFO, update during parsing, writing, or application usage time_t exp_date; +#endif std::string error_msg; // if permanent error occurs during file xfer, // it's recorded here diff --git a/client/cs_scheduler.C b/client/cs_scheduler.C index 8cf84e951d..51aa67f4cc 100644 --- a/client/cs_scheduler.C +++ b/client/cs_scheduler.C @@ -529,7 +529,7 @@ int CLIENT_STATE::handle_scheduler_reply( if (sr.user_expavg_credit >= 0) { project->user_expavg_credit = sr.user_expavg_credit; } - if (sr.user_create_time >= 0) { + if (sr.user_create_time > 0) { project->user_create_time = sr.user_create_time; } if (sr.host_total_credit >= 0) { diff --git a/client/scheduler_op.C b/client/scheduler_op.C index 13d47b2c94..d6969def04 100644 --- a/client/scheduler_op.C +++ b/client/scheduler_op.C @@ -567,7 +567,7 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) { hostid = 0; host_total_credit = -1; host_expavg_credit = -1; - host_create_time = -1; + host_create_time = 0; request_delay = 0; strcpy(message, ""); strcpy(message_priority, ""); @@ -579,7 +579,7 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) { user_total_credit = -1; user_expavg_credit = -1; strcpy(host_venue, ""); - user_create_time = -1; + user_create_time = 0; code_sign_key = 0; code_sign_key_signature = 0; message_ack = false; diff --git a/doc/intro.php b/doc/intro.php index 9334b059d6..3fa71864f5 100644 --- a/doc/intro.php +++ b/doc/intro.php @@ -8,7 +8,8 @@ using volunteer computer resources.

A paper about BOINC's design goals is here: HTML | -PDF. +PDF | +HTML German.

The BOINC's features fall into several areas: diff --git a/sched/server_types.C b/sched/server_types.C index d93913f878..694c61bb99 100644 --- a/sched/server_types.C +++ b/sched/server_types.C @@ -255,7 +255,7 @@ int SCHEDULER_REPLY::write(FILE* fout) { host.venue, host.create_time ); - ); + } // might want to send team credit too. //