mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 00:20:50 +00:00
Improve load-balancing
This commit is contained in:
@@ -42,6 +42,14 @@ using SteamKit2;
|
||||
namespace ArchiSteamFarm {
|
||||
internal static class Program {
|
||||
internal static bool IsWCFRunning => WCF.IsServerRunning;
|
||||
|
||||
internal static byte LoadBalancingDelay {
|
||||
get {
|
||||
byte result = GlobalConfig?.LoginLimiterDelay ?? GlobalConfig.DefaultLoginLimiterDelay;
|
||||
return result < GlobalConfig.DefaultLoginLimiterDelay ? GlobalConfig.DefaultLoginLimiterDelay : result;
|
||||
}
|
||||
}
|
||||
|
||||
internal static GlobalConfig GlobalConfig { get; private set; }
|
||||
internal static GlobalDatabase GlobalDatabase { get; private set; }
|
||||
internal static bool IsRunningAsService { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user