*** empty log message ***

svn path=/trunk/boinc/; revision=399
This commit is contained in:
David Anderson 2002-08-30 22:11:36 +00:00
parent 04586e492d
commit 9796a5e881
4 changed files with 27 additions and 17 deletions

View File

@ -129,26 +129,36 @@ bool CLIENT_STATE::run_time_tests() {
// so it should be called very seldom // so it should be called very seldom
// //
int CLIENT_STATE::time_tests() { int CLIENT_STATE::time_tests() {
if (log_flags.measurement_debug) {
printf("Getting general host information.\n");
}
get_host_info(host_info); // this is platform dependent
#if 0 #if 0
double fpop_test_secs = 2.0; double fpop_test_secs = 2.0;
double iop_test_secs = 2.0; double iop_test_secs = 2.0;
double mem_test_secs = 2.0; double mem_test_secs = 2.0;
if (log_flags.measurement_debug) { if (log_flags.measurement_debug) {
printf( "Running floating point test for about %.1f seconds.\n", printf(
fpop_test_secs ); "Running floating point test for about %.1f seconds.\n",
fpop_test_secs
);
} }
host_info.p_fpops = run_double_prec_test(fpop_test_secs); //these are not host_info.p_fpops = run_double_prec_test(fpop_test_secs); //these are not
if (log_flags.measurement_debug) { if (log_flags.measurement_debug) {
printf( "Running integer test for about %.1f seconds.\n", printf(
iop_test_secs ); "Running integer test for about %.1f seconds.\n",
iop_test_secs
);
} }
host_info.p_iops = run_int_test(iop_test_secs); host_info.p_iops = run_int_test(iop_test_secs);
if (log_flags.measurement_debug) { if (log_flags.measurement_debug) {
printf( "Running memory bandwidth test for about %.1f seconds.\n", printf(
mem_test_secs ); "Running memory bandwidth test for about %.1f seconds.\n",
mem_test_secs
);
} }
host_info.p_membw = run_mem_bandwidth_test(mem_test_secs); host_info.p_membw = run_mem_bandwidth_test(mem_test_secs);
#else #else
@ -157,10 +167,6 @@ int CLIENT_STATE::time_tests() {
host_info.p_membw = 1000000000; host_info.p_membw = 1000000000;
host_info.m_cache = 1000000; host_info.m_cache = 1000000;
#endif #endif
if (log_flags.measurement_debug) {
printf( "Getting general host information.\n" );
}
get_host_info(host_info); // this is platform dependent
host_info.p_calculated = (double)time(0); //set time calculated host_info.p_calculated = (double)time(0); //set time calculated
return 0; return 0;

View File

@ -39,6 +39,14 @@
#include "client_state.h" #include "client_state.h"
#include "error_numbers.h" #include "error_numbers.h"
// Decide whether to start a new file transfer
//
bool CLIENT_STATE::start_new_file_xfer() {
// TODO: limit the number of file xfers in some way
return true;
}
// Make a directory for each of the projects present // Make a directory for each of the projects present
// in the client state // in the client state
// //

View File

@ -43,13 +43,6 @@
#define EXP_DECAY_RATE (1./(3600*24*7)) #define EXP_DECAY_RATE (1./(3600*24*7))
#define SECONDS_IN_DAY 86400 #define SECONDS_IN_DAY 86400
// Decide whether to start a new file transfer
//
bool CLIENT_STATE::start_new_file_xfer() {
// **** this should do a little more than this
return true;
}
// estimate the days of work remaining // estimate the days of work remaining
// //
double CLIENT_STATE::current_water_days() { double CLIENT_STATE::current_water_days() {

3
sched/main.h Normal file
View File

@ -0,0 +1,3 @@
#include "db.h"
extern PROJECT gproject;