From 6afa644fed61e618bb31af8ec92893cb1e570222 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 18 Jan 2013 05:12:37 -0800 Subject: [PATCH] - client: backoff message tweaks --- client/work_fetch.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index 776a157836..37c6a22757 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -512,7 +512,9 @@ void RSC_WORK_FETCH::print_state(const char* name) { bool no_rsc_ams = p->no_rsc_ams[rsc_type]; double bt = pwf.backoff_time>gstate.now?pwf.backoff_time-gstate.now:0; if (bt) { - sprintf(buf, " (resource backoff: %.2f)", bt); + sprintf(buf, " (resource backoff: %.2f, inc %.2f)", + bt, pwf.backoff_interval + ); } else { strcpy(buf, ""); } @@ -655,6 +657,11 @@ void WORK_FETCH::print_state() { } else { strcpy(buf, "can req work"); } + if (p->min_rpc_time > gstate.now) { + char buf2[256]; + sprintf(buf2, " (backoff: %.2f sec)", p->min_rpc_time - gstate.now); + strcat(buf, buf2); + } msg_printf(p, MSG_INFO, "[work_fetch] REC %.3f prio %.6f %s", p->pwf.rec, p->sched_priority,