From 3b309a74e189dee89866a15f66d49963a70bf9ab Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Mon, 8 Sep 2003 06:01:41 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2314 --- checkin_notes | 9 +++++++-- client/app.C | 4 ++-- client/client_state.C | 16 +++++++++------- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/checkin_notes b/checkin_notes index 5c24294822..e6d1f64ed5 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6233,8 +6233,13 @@ Karl 2003/09/07 html_user/*.php, *.inc -Karl 2003/09/07 - changed "Results uploaded" to "Outputs uploaded" - clients/ + client/ gui_titles.C + + - use rsc_fpops_bound instead of rsc_fpops_est*2 + + client/ + app.C + client_types.C diff --git a/client/app.C b/client/app.C index 50b37400ae..7119a1c2b3 100644 --- a/client/app.C +++ b/client/app.C @@ -123,7 +123,7 @@ int ACTIVE_TASK::init(RESULT* rp) { result = rp; wup = rp->wup; app_version = wup->avp; - max_cpu_time = gstate.estimate_cpu_time(*rp->wup)*2; + max_cpu_time = rp->wup->rsc_fpops_bound/gstate.host_info.p_fpops; max_disk_usage = rp->wup->rsc_disk_bound; max_mem_usage = rp->wup->rsc_memory_bound; @@ -482,7 +482,7 @@ pid_t wait4(pid_t pid, int *statusp, int options, struct rusage *rusagep) { proc_info.erase(pid); return pid; } - } + } } #endif diff --git a/client/client_state.C b/client/client_state.C index 32284e585b..c8cc1d7e37 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -516,14 +516,16 @@ int CLIENT_STATE::current_disk_usage(double& size) { return dir_size(".", size); } -// estimate how long a WU will take on this host -// -double CLIENT_STATE::estimate_cpu_time(WORKUNIT& wu) { - double x; +// TODO: remove delete these - x = wu.rsc_fpops_est/host_info.p_fpops; - return x; -} +// // estimate how long a WU will take on this host +// // +// double CLIENT_STATE::estimate_cpu_time(WORKUNIT& wu) { +// double x; + +// x = wu.rsc_fpops_est/host_info.p_fpops; +// return x; +// } inline double force_fraction(double f) { if (f < 0) return 0;