Skip to content

Commit eb5e88f

Browse files
authored
Mirrors sort #4046 (#4050)
* Mirrors sort #4046 * Change logic to be just sorted on bitrate
1 parent 9f4f29b commit eb5e88f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

archinstall/lib/mirrors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ def get_status_by_region(self, region: str, speed_sort: bool) -> list[MirrorStat
450450
# Local mirrors lack this data and can be modified manually before-hand
451451
# Or reflector potentially ran already
452452
if self._fetched_remote and speed_sort:
453-
# original return
454-
return sorted(region_list, key=lambda mirror: (mirror.score, mirror.speed))
453+
# Sort by speed descending (higher is better in bitrate form core.db download)
454+
return sorted(region_list, key=lambda mirror: -mirror.speed)
455455
# just return as-is without sorting?
456456
return region_list
457457

0 commit comments

Comments
 (0)