Format and convert units to be more human readable

    @return new val with converted units

def conv_units(val, meta):
    """
    Format and convert units to be more human readable

    @return new val with converted units
    """
    if not val or not meta:
        return val

    try:
        val = float(val)
    except ValueError:
        logging.error("unable to apply convert units for %s" % val)
        return val

    suf = 0
    while val > 1024 and suf < 4:
        val /= 1024
        suf += 1

    return "%.2f%s" % (val, UNITS_SUFFIX[suf])