@@ -746,7 +746,6 @@ internal async Task HttpUploadLogAsync(string file, Dictionary<string, string> p
746
746
AddToText ( $ ">:> Uploading { Path . GetFileName ( file ) } ") ;
747
747
var request = new RestRequest ( CreateDPSReportLink ( ) ) ;
748
748
request . AddBody ( postData ) ;
749
- var bossId = 1 ;
750
749
try
751
750
{
752
751
request . AddFile ( "file" , file ) ;
@@ -799,7 +798,7 @@ internal async Task HttpUploadLogAsync(string file, Dictionary<string, string> p
799
798
AddToText ( $ ">:> Despite the error, log link has been generated, processing upload...") ;
800
799
}
801
800
}
802
- bossId = reportJson . Encounter . BossId ;
801
+ var bossId = reportJson . Encounter . BossId ;
803
802
var success = ( reportJson . Encounter . Success ?? false ) ? "true" : "false" ;
804
803
lastLogBossCM = reportJson . ChallengeMode ;
805
804
// extra JSON from Elite Insights
@@ -891,10 +890,10 @@ internal async Task HttpUploadLogAsync(string file, Dictionary<string, string> p
891
890
if ( uploadFailCounters . TryGetValue ( file , out int uploadFailCounter ) )
892
891
{
893
892
uploadFailCounters [ file ] ++ ;
894
- if ( uploadFailCounter > 3 )
893
+ if ( uploadFailCounter > 4 )
895
894
{
896
895
uploadFailCounters . Remove ( file ) ;
897
- AddToText ( $ ">:> Upload retry failed 3 times for { Path . GetFileName ( file ) } , will try again in 15m .") ;
896
+ AddToText ( $ ">:> Upload retry failed 4 times for { Path . GetFileName ( file ) } , will try again in 15 minutes .") ;
898
897
LogReuploader . FailedLogs . Add ( file ) ;
899
898
LogReuploader . SaveFailedLogs ( ) ;
900
899
timerFailedLogsReupload . Enabled = true ;
@@ -905,8 +904,9 @@ internal async Task HttpUploadLogAsync(string file, Dictionary<string, string> p
905
904
{
906
905
var delay = uploadFailCounter switch
907
906
{
908
- 3 => 45000 ,
909
- 2 => 15000 ,
907
+ 4 => 180000 ,
908
+ 3 => 90000 ,
909
+ 2 => 30000 ,
910
910
_ => 3000 ,
911
911
} ;
912
912
AddToText ( $ ">:> Retrying in { delay / 1000 } s...") ;
0 commit comments