diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-15 21:44:15 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-15 21:44:15 -0600 |
| commit | 929ff397ae978cc7b7b75d2dddff000819d8ef8b (patch) | |
| tree | 6b477690ccc19fb469cb0039ba07cae9bf0e7efd | |
| parent | 1195a747fd8adfcad682eaa5d018f3e75c418a41 (diff) | |
| parent | 8e3ee8ecb276669745dc0eb6266d78055632f075 (diff) | |
| download | slskd-929ff397ae978cc7b7b75d2dddff000819d8ef8b.tar.gz | |
Merge branch 'groups' of https://github.com/slskd/slskd into groups
| -rw-r--r-- | src/slskd/Options.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Transfers/Uploads/UploadQueue.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index f7e1266d..2313ce69 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -551,7 +551,7 @@ namespace slskd /// Gets the limit for the total number of upload slots for the group. /// </summary> [Range(1, int.MaxValue)] - public int Slots { get; init; } = 10; + public int Slots { get; init; } = int.MaxValue; /// <summary> /// Gets the total upload speed limit for the group. diff --git a/src/slskd/Transfers/Uploads/UploadQueue.cs b/src/slskd/Transfers/Uploads/UploadQueue.cs index 71c8bf93..44aa8af4 100644 --- a/src/slskd/Transfers/Uploads/UploadQueue.cs +++ b/src/slskd/Transfers/Uploads/UploadQueue.cs @@ -239,7 +239,7 @@ namespace slskd.Transfers // process each group in ascending order of priority, and stop after the first // ready upload is released. - foreach (var group in Groups.Values.OrderBy(g => g.Priority)) + foreach (var group in Groups.Values.OrderBy(g => g.Priority).ThenBy(g => g.Name)) { if (group.UsedSlots >= group.Slots || !readyUploadsByGroup.TryGetValue(group.Name, out var uploads) || !uploads.Any()) { |
