def size_in_gb(size):
    """Return the size in GB without the unit."""
    ret = size.replace(' ', '')
    if ret[-2:] == 'GB':
        return ret[:-2]
    if ret[-2:] == 'TB':
        return str(int(float(ret[:-2]) * 1000))
    return ret
