mirror of https://github.com/BOINC/boinc.git
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:
parent
eaf9e196bb
commit
3efc634fdf
|
@ -10112,5 +10112,6 @@ Bruce 10 Sept 2006
|
|||
|
||||
lib/
|
||||
util.C
|
||||
util.h
|
||||
|
||||
|
||||
|
|
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Reference in New Issue