def calculate_real_size(value):
    """
    check if we have a 32 bit counter overrun
    calculate the real_size; we check if the integer is positive
    """
    if value > 0:
        return value
    real_size = -value + 2147483647
    return real_size
