From 9180a557c3a089b229428878697f4369a17319cb Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 30 Sep 2012 19:11:22 +1000 Subject: [PATCH] Count each stratum notify as a getwork equivalent. --- util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.c b/util.c index d31167e1..f6480c43 100644 --- a/util.c +++ b/util.c @@ -1032,6 +1032,9 @@ static bool parse_notify(struct pool *pool, json_t *val) applog(LOG_DEBUG, "clean: %s", clean ? "yes" : "no"); } + /* A notify message is the closest stratum gets to a getwork */ + pool->getwork_requested++; + total_getworks++; return true; }