optimization-logger.hh: fix check for input size.