Store previous value to pvalue variable per thread
Storing of previous value is done just for "Totals" counters. I believe that it should be stored also per thread. In other words, the pvalue is currently uninitialized which is in my opinion wrong.
I have already reported that as github merge request. I have made 2 more commits into my branch, which intend to be in next ticket as a feature request.