Core commits counter bug

* fix core commits comparison with last scan timestamp
* clear core commits stats