From 94c98dc0f17376107a0f0b4c9238650814524b22 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 13 May 2017 18:35:53 +1000 Subject: [PATCH] Fix missing username generation in read_userstats for workerstats. --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 7588ed01..332615e6 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5134,6 +5134,7 @@ static void read_userstats(ckpool_t *ckp, sdata_t *sdata, int tvsec_diff) continue; base_username = strdupa(workername); + username = strsep(&base_username, "._"); if (!username || !strlen(username)) username = base_username; len = strlen(username);