def generate_perfdata_string(value='U', warning='', critical=''):
    """Generate a valid perfdata string based on `value`, `warning` and
    `critical`."""
    perfdata_string = "|'Percentage delayed'=" + str(value) + '%;' + str(
        warning) + ';' + str(critical)
    return perfdata_string
