Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qutrits committed Jul 14, 2023
1 parent 2d8f583 commit e5d2376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Entities/LogFileWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ private void InitStaticVariable() {
Stats.LastCountryFullName = string.Empty;
Stats.IsPrePlaying = false;
Stats.IsPlaying = false;
Stats.PingSwitcher = 8;
Stats.PingSwitcher = 10;
}

private bool ParseLine(LogLine line, List<RoundInfo> round, LogRound logRound) {
Expand Down Expand Up @@ -551,7 +551,7 @@ private bool ParseLine(LogLine line, List<RoundInfo> round, LogRound logRound) {
lock (this.pingCheckLock) {
string host = line.Line.Substring(line.Line.IndexOf("Host = ") + 7);
string ip = host.Substring(0, host.IndexOf(":"));
if (Stats.PingSwitcher++ % 8 == 0) {
if (Stats.PingSwitcher++ % 10 == 0) {
Stats.PingSwitcher = 1;
byte[] bufferArray = new byte[32];
int timeout = 1000;
Expand Down
2 changes: 1 addition & 1 deletion Views/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private static bool IsAlreadyRunning(string sysLang) {
public static bool EndedShow = false;
public static bool IsPlaying = false;
public static bool IsPrePlaying = false;
public static int PingSwitcher = 8;
public static int PingSwitcher = 10;
public static long LastServerPing = 0;
public static bool IsBadPing = false;
public static string LastCountryCode = string.Empty;
Expand Down

0 comments on commit e5d2376

Please sign in to comment.