diff --git a/checkin_notes b/checkin_notes index 78043d1f1d..6066508605 100755 --- a/checkin_notes +++ b/checkin_notes @@ -18016,3 +18016,12 @@ David 4 Oct 2004 client/win/ wingui_mainwindow.cpp + +David 4 Oct 2004 + - fix typos and compile errors + + db/ + boinc_db.C + db_base.h + client/ + cs_scheduler.C diff --git a/client/cs_scheduler.C b/client/cs_scheduler.C index a3958811c1..f502a4545a 100644 --- a/client/cs_scheduler.C +++ b/client/cs_scheduler.C @@ -345,7 +345,7 @@ bool CLIENT_STATE::some_project_rpc_ok() { double CLIENT_STATE::avg_proc_rate(PROJECT *p) { return (p->resource_share / trs) * ncpus - * time_state.on_frac * time_stats.active_frac; + * time_stats.on_frac * time_stats.active_frac; } // "estimated time to project result count" diff --git a/db/boinc_db.C b/db/boinc_db.C index c5b2a69869..c5f3d97a82 100644 --- a/db/boinc_db.C +++ b/db/boinc_db.C @@ -22,6 +22,7 @@ #include #include #include +#include #include "util.h" #include "boinc_db.h" @@ -30,6 +31,10 @@ #include "fcgi_stdio.h" #endif +extern "C" { + int isnan(double); +} + DB_CONN boinc_db; static struct random_init { diff --git a/db/db_base.h b/db/db_base.h index cbce13d7fe..5e45002d9e 100644 --- a/db/db_base.h +++ b/db/db_base.h @@ -27,13 +27,13 @@ // inline int safe_atoi(const char* s) { - if (!s) return 0; - return atoi(s); + if (!s) return 0; + return atoi(s); } inline float safe_atof(const char* s) { - if (!s) return 0; - return atof(s); + if (!s) return 0; + return atof(s); } #define strcpy2(x, y) \