For computing and tracking a host's average credit/cpu_time I

have inserted a new averaging function
update_credit_per_cpu_sec() into lib/util.C.  This function
should be called from validator.C, and then the value of
credit_per_cpu_sec should be exported by db_dump.C in the
host_id.gz stats file.

David, Eric, if you could check the code and logic here I would
be grateful.  I won't modify validator.C or db_dump.C until
we've agreed on this.

svn path=/trunk/boinc/; revision=11135
This commit is contained in:
Bruce Allen 2006-09-11 11:25:29 +00:00
parent eaf9e196bb
commit 3efc634fdf
2 changed files with 2 additions and 0 deletions

View File

@ -10112,5 +10112,6 @@ Bruce 10 Sept 2006
lib/
util.C
util.h

View File

@ -133,6 +133,7 @@ extern int boinc_process_cpu_time(double& cpu);
#endif
extern void update_average(double, double, double, double&, double&);
extern int update_credit_per_cpu_sec(double credit, double cpu_time, double& credit_per_cpu_sec);
extern int boinc_calling_thread_cpu_time(double&);