Update ring-buffer.