From 2561eff1cbc5f2bb2298d55e90f3f6a6d708e725 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Sun, 26 Apr 2015 08:52:29 +1000 Subject: [PATCH] Update user auth time on each successful auth --- src/stratifier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index f1cdf034..6b4ee37b 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2428,8 +2428,7 @@ static int send_recv_auth(stratum_instance_t *client) json_get_string(&secondaryuserid, val, "secondaryuserid"); parse_worker_diffs(ckp, worker_array); client->suggest_diff = worker->mindiff; - if (!user->auth_time) - user->auth_time = time(NULL); + user->auth_time = time(NULL); } if (secondaryuserid && (!safecmp(response, "ok.authorise") || !safecmp(response, "ok.addrauth"))) {