From 312c44415df1dd4b1c9846f98acb531d0d103064 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 7 Nov 2011 18:53:37 +0000 Subject: [PATCH] - client: condition RR sim negative FLOPs message on rr_simulation. svn path=/trunk/boinc/; revision=24540 --- checkin_notes | 6 ++++++ client/rr_sim.cpp | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index 917137f230..2b1e5a111e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/rr_sim.cpp b/client/rr_sim.cpp index b52dc3f506..c994582b96 100644 --- a/client/rr_sim.cpp +++ b/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;