svn path=/trunk/boinc/; revision=19534

This commit is contained in:
David Anderson 2009-11-10 23:39:51 +00:00
parent a0e3c5ae8d
commit 1a6119e929
1 changed files with 6 additions and 0 deletions

View File

@ -271,6 +271,7 @@ int main(int argc, char** argv) {
int n=0, nstats=0, rsc_type;
double total_old_credit = 0;
double total_new_credit = 0;
printf("DB query: select * from result %s\n", clause);
while (!r.enumerate(clause)) {
printf("%d) result %d host %d\n", n, r.id, r.hostid);
@ -395,6 +396,11 @@ int main(int argc, char** argv) {
print_avs();
}
}
if (nstats == 0) {
printf("Insufficient jobs were read from DB\n");
exit(0);
}
print_avs();
printf("Average old credit: %f\n", total_old_credit/nstats);