fix ringbuffer size decrease
Merge pull request #974 from mind04/statbag

 fix ringbuffer size decrease