tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
GeneralConfigurationExtensions.cs
Go to the documentation of this file.
1using System;
2
4
6{
11 {
17 public static int? GetCopyDirectoryTaskThrottle(this GeneralConfiguration generalConfiguration)
18 {
19 ArgumentNullException.ThrowIfNull(generalConfiguration);
20
21 var tasksPerCore = generalConfiguration.DeploymentDirectoryCopyTasksPerCore;
22 if (!tasksPerCore.HasValue)
23 return null;
24
25 var taskThrottle = (uint)Environment.ProcessorCount * tasksPerCore.Value;
26 return (int)taskThrottle;
27 }
28 }
29}
uint? DeploymentDirectoryCopyTasksPerCore
A limit on the amount of tasks used for asynchronous I/O when copying directories during the deployme...
static ? int GetCopyDirectoryTaskThrottle(this GeneralConfiguration generalConfiguration)
Gets the total number of tasks that may run simultaneously during an asynchronous directory copy oper...