Skip to content

Commit 25373c1

Browse files
committed
Increast error tracking threshold
1 parent 431b7eb commit 25373c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

OculusDB/OculusDBEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace OculusDB
1313
{
1414
public class OculusDBEnvironment
1515
{
16-
public static Updater updater = new ("1.1.52", "https://github.com/ComputerElite/OculusDB", "OculusDB", "OculusDB.dll");
16+
public static Updater updater = new ("1.1.53", "https://github.com/ComputerElite/OculusDB", "OculusDB", "OculusDB.dll");
1717
public static string workingDir = "";
1818
public static string dataDir = "";
1919
// Set to false if not in dev mode

OculusDB/ScrapingNodeCode/ScrapingNodeScraperErrorTracker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public bool ContinueScraping()
1414
public void AddError()
1515
{
1616
errorTimes.Add(DateTime.UtcNow);
17-
errorTimes.RemoveAll(x => x < DateTime.UtcNow.AddMinutes(-5));
17+
errorTimes.RemoveAll(x => x < DateTime.UtcNow.AddMinutes(-2));
1818
// If more than 10 errors occur in 5 minutes, the node will stop scraping for 5 hours
19-
if(errorTimes.Count > 10) continueTime = DateTime.UtcNow.AddHours(5);
19+
if(errorTimes.Count > 20) continueTime = DateTime.UtcNow.AddHours(5);
2020
}
2121
}

0 commit comments

Comments
 (0)