mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Removal of ToArray()
This commit is contained in:
parent
9eb22da9e7
commit
9f5cf132f0
41 changed files with 184 additions and 189 deletions
|
|
@ -285,7 +285,7 @@ namespace ServerManagerTool.Common.Utils
|
|||
}
|
||||
}
|
||||
|
||||
public static BigInteger[] GetProcessorAffinityList()
|
||||
public static IEnumerable<BigInteger> GetProcessorAffinityList()
|
||||
{
|
||||
var processorCount = ProcessorCount;
|
||||
var results = new List<BigInteger>(processorCount + 1);
|
||||
|
|
@ -295,7 +295,7 @@ namespace ServerManagerTool.Common.Utils
|
|||
{
|
||||
results.Add((BigInteger)Math.Pow(2, index));
|
||||
}
|
||||
return results.ToArray();
|
||||
return results;
|
||||
}
|
||||
|
||||
public static string[] GetProcessPriorityList()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue