mirror of https://github.com/BOINC/boinc.git
- client: condition RR sim negative FLOPs message on rr_simulation.
svn path=/trunk/boinc/; revision=24540
This commit is contained in:
parent
08fbbe8dfe
commit
312c44415d
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue