mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -37,6 +37,7 @@ namespace ArchiSteamFarm {
|
||||
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
|
||||
public sealed class GlobalConfig {
|
||||
internal const byte DefaultConnectionTimeout = 90;
|
||||
internal const byte DefaultLoginLimiterDelay = 10;
|
||||
|
||||
private const bool DefaultAutoRestart = true;
|
||||
private const string DefaultCommandPrefix = "!";
|
||||
@@ -50,7 +51,6 @@ namespace ArchiSteamFarm {
|
||||
private const byte DefaultInventoryLimiterDelay = 3;
|
||||
private const bool DefaultIPC = false;
|
||||
private const string DefaultIPCPassword = null;
|
||||
private const byte DefaultLoginLimiterDelay = 10;
|
||||
private const byte DefaultMaxFarmingTime = 10;
|
||||
private const byte DefaultMaxTradeHoldDuration = 15;
|
||||
private const EOptimizationMode DefaultOptimizationMode = EOptimizationMode.MaxPerformance;
|
||||
|
||||
@@ -38,7 +38,7 @@ using SteamKit2;
|
||||
|
||||
namespace ArchiSteamFarm {
|
||||
internal static class Program {
|
||||
internal static byte LoadBalancingDelay => Math.Max(ASF.GlobalConfig?.LoginLimiterDelay ?? 0, (byte) 10);
|
||||
internal static byte LoadBalancingDelay => Math.Max(ASF.GlobalConfig?.LoginLimiterDelay ?? 0, GlobalConfig.DefaultLoginLimiterDelay);
|
||||
|
||||
internal static GlobalDatabase GlobalDatabase { get; private set; }
|
||||
internal static bool ProcessRequired { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user