*** empty log message ***

svn path=/trunk/boinc/; revision=4288
This commit is contained in:
David Anderson 2004-10-04 22:37:08 +00:00
parent 70a9982ba6
commit 5b51f17d3b
4 changed files with 19 additions and 5 deletions

View File

@ -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

View File

@ -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"

View File

@ -22,6 +22,7 @@
#include <ctime>
#include <unistd.h>
#include <cmath>
#include <math.h>
#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 {

View File

@ -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) \