Revision af90d919 logic/backend.py

b/logic/backend.py
143 143
    #      somewhere.
144 144
    percentage = int(rprogress)
145 145

  
146
    if percentage < 0 or percentage > 100:
147
        raise ValueError("Percentage not in range [0, 100]")
146
    # The percentage may exceed 100%, due to the way
147
    # snf-progress-monitor tracks bytes read by image handling processes
148
    percentage = 100 if percentage > 100 else percentage
149
    if percentage < 0:
150
        raise ValueError("Percentage cannot be negative")
148 151

  
149 152
    last_update = vm.buildpercentage
150 153

  

Also available in: Unified diff