mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 15:13:02 +00:00
proxyclient/m1n1/utils.py: don't compact non-adjacent ranges
Signed-off-by: Pip Cet <pipcet@gmail.com>
This commit is contained in:
parent
1d932888f9
commit
d709b047d8
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ class RangeMap(Reloadable):
|
||||||
s, e, v = self.__start[pos], self.__end[pos], self.__value[pos]
|
s, e, v = self.__start[pos], self.__end[pos], self.__value[pos]
|
||||||
if empty(v):
|
if empty(v):
|
||||||
continue
|
continue
|
||||||
if new_v and equal(last, v):
|
if new_v and equal(last, v) and s == new_e[-1] + 1:
|
||||||
new_e[-1] = e
|
new_e[-1] = e
|
||||||
else:
|
else:
|
||||||
new_s.append(s)
|
new_s.append(s)
|
||||||
|
|
Loading…
Reference in a new issue