From a6c448340d16a96d1d092005322eb125c3fa749e Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 22 Apr 2017 00:46:19 +0200 Subject: [PATCH] Optimize GetActiveTradeOffers() This is a very important optimization, as Steam might randomly fuck up and not apply default cutoff of last request (as stated in documentation). We have no interest of changes anyway, so we can skip all trades but active ones. --- ArchiSteamFarm/ArchiWebHandler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index 4f28acac8..e2178e5be 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -236,10 +236,11 @@ namespace ArchiSteamFarm { try { response = iEconService.GetTradeOffers( - get_received_offers: 1, active_only: 1, get_descriptions: 1, - secure: true + get_received_offers: 1, + secure: true, + time_historical_cutoff: uint.MaxValue ); } catch (Exception e) { Bot.ArchiLogger.LogGenericWarningException(e);