From 57cb519c4452f4ecebb2b5bfdb683b9de4a5dfae Mon Sep 17 00:00:00 2001 From: Archi Date: Mon, 2 Oct 2023 20:37:25 +0200 Subject: [PATCH] Misc --- .../Collections/ObservableConcurrentDictionary.cs | 9 --------- ArchiSteamFarm/Steam/Cards/CardsFarmer.cs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs b/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs index e30b676db..5d2e39f03 100644 --- a/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs +++ b/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs @@ -113,15 +113,6 @@ public sealed class ObservableConcurrentDictionary : IDictionary.TryGetValue(TKey key, out TValue value) => BackingDictionary.TryGetValue(key, out value!); bool IDictionary.TryGetValue(TKey key, out TValue value) => BackingDictionary.TryGetValue(key, out value!); - [PublicAPI] - public TValue AddOrUpdate(TKey key, TValue addValue, Func updateValueFactory) { - TValue result = BackingDictionary.AddOrUpdate(key, addValue, updateValueFactory); - - OnModified?.Invoke(this, EventArgs.Empty); - - return result; - } - [PublicAPI] public bool TryAdd(TKey key, TValue value) { if (!BackingDictionary.TryAdd(key, value)) { diff --git a/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs b/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs index 51ba76498..148a47685 100644 --- a/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs +++ b/ArchiSteamFarm/Steam/Cards/CardsFarmer.cs @@ -49,7 +49,7 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable { internal const byte DaysForRefund = 14; // In how many days since payment we're allowed to refund internal const byte HoursForRefund = 2; // Up to how many hours we're allowed to play for refund - private const byte DaysToIgnoreRiskyAppIDs = 7; // How many days since determining that game is not candidate for idling, we assume that to still be the case, in risky approach + private const byte DaysToIgnoreRiskyAppIDs = 14; // How many days since determining that game is not candidate for idling, we assume that to still be the case, in risky approach private const byte ExtraFarmingDelaySeconds = 10; // In seconds, how much time to add on top of FarmingDelay (helps fighting misc time differences of Steam network) private const byte HoursToIgnore = 1; // How many hours we ignore unreleased appIDs and don't bother checking them again