From 854f3155f1d77907e77573ecfa7e836b0ae202ae Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 19 Feb 2022 13:07:24 -0600 Subject: fix spelling --- src/slskd/Application.cs | 4 ++-- src/slskd/Options.cs | 4 ++-- src/slskd/Transfers/Uploads/UploadGovernor.cs | 2 +- src/slskd/Transfers/Uploads/UploadQueue.cs | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index b03f1abd..83f18a52 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -60,9 +60,9 @@ namespace slskd public static readonly string DefaultGroup = "default"; /// - /// The name of the priviledged user group. + /// The name of the privileged user group. /// - public static readonly string PriviledgedGroup = "priviledged"; + public static readonly string PrivilegedGroup = "privileged"; /// /// The name of the leecher user group. diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 2313ce69..5bebeb68 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -467,7 +467,7 @@ namespace slskd /// Gets options for the default user group. /// /// - /// These options apply to users that are not priviledged, have not been identified as leechers, + /// These options apply to users that are not privileged, have not been identified as leechers, /// and have not been added as a member of any group. /// [Validate] @@ -495,7 +495,7 @@ namespace slskd /// public IEnumerable Validate(ValidationContext validationContext) { - var builtInGroups = new[] { Application.PriviledgedGroup, Application.DefaultGroup, Application.LeecherGroup }; + var builtInGroups = new[] { Application.PrivilegedGroup, Application.DefaultGroup, Application.LeecherGroup }; var intersection = UserDefined.Keys.Intersect(builtInGroups); return intersection.Select(group => new ValidationResult($"User defined group '{group}' collides with a built in group. Choose a different name.")); diff --git a/src/slskd/Transfers/Uploads/UploadGovernor.cs b/src/slskd/Transfers/Uploads/UploadGovernor.cs index 9221d686..a806815f 100644 --- a/src/slskd/Transfers/Uploads/UploadGovernor.cs +++ b/src/slskd/Transfers/Uploads/UploadGovernor.cs @@ -150,7 +150,7 @@ namespace slskd.Transfers // also, so transfers in progress will briefly exceed the intended speeds. var tokenBuckets = new Dictionary() { - { Application.PriviledgedGroup, CreateBucket(options.Global.Upload.SpeedLimit) }, + { Application.PrivilegedGroup, CreateBucket(options.Global.Upload.SpeedLimit) }, { Application.DefaultGroup, CreateBucket(options.Groups.Default.Upload.SpeedLimit) }, { Application.LeecherGroup, CreateBucket(options.Groups.Leechers.Upload.SpeedLimit) }, }; diff --git a/src/slskd/Transfers/Uploads/UploadQueue.cs b/src/slskd/Transfers/Uploads/UploadQueue.cs index 44aa8af4..e5b8c5f5 100644 --- a/src/slskd/Transfers/Uploads/UploadQueue.cs +++ b/src/slskd/Transfers/Uploads/UploadQueue.cs @@ -296,15 +296,15 @@ namespace slskd.Transfers { // the priority group is hard-coded with priority 0, slot count equivalent to the overall max, // and a FIFO strategy. all other groups have a minimum priority of 1 (enforced by options validation) - // to ensure that priviledged users always take priority, regardless of user configuration. - // the strategy is fixed to FIFO because that gives priviledged users the closest experience + // to ensure that privileged users always take priority, regardless of user configuration. + // the strategy is fixed to FIFO because that gives privileged users the closest experience // to the official client, as well as the appearance of fairness once the first upload begins. new Group() { - Name = Application.PriviledgedGroup, + Name = Application.PrivilegedGroup, Priority = 0, Slots = MaxSlots, - UsedSlots = GetExistingUsedSlotsOrDefault(Application.PriviledgedGroup), + UsedSlots = GetExistingUsedSlotsOrDefault(Application.PrivilegedGroup), Strategy = QueueStrategy.FirstInFirstOut, }, new Group() -- cgit v1.2.3