fix trailing average on ring buffer, remove unused constant