- client: condition RR sim negative FLOPs message on rr_simulation.

svn path=/trunk/boinc/; revision=24540
This commit is contained in:
David Anderson 2011-11-07 18:53:37 +00:00
parent 08fbbe8dfe
commit 312c44415d
2 changed files with 12 additions and 4 deletions

View File

@ -8199,3 +8199,9 @@ David 7 Nov 2011
clientgui/
sg_TaskPanel.cpp
David 7 Nov 2011
- client: condition RR sim negative FLOPs message on rr_simulation.
client/
rr_sim.cpp

View File

@ -404,10 +404,12 @@ void RR_SIM::simulate() {
// can be slightly less than 0 due to roundoff
//
if (rp->rrsim_flops_left < -1) {
msg_printf(rp->project, MSG_INTERNAL_ERROR,
"%s: negative FLOPs left %f", rp->name, rp->rrsim_flops_left
);
if (rp->rrsim_flops_left < -1e6) {
if (log_flags.rr_simulation) {
msg_printf(rp->project, MSG_INTERNAL_ERROR,
"%s: negative FLOPs left %f", rp->name, rp->rrsim_flops_left
);
}
}
if (rp->rrsim_flops_left < 0) {
rp->rrsim_flops_left = 0;