Update ScreenMatch.cs, ServiceMain.cs

This commit is contained in:
Namhyeon Go 2024-08-26 17:53:21 +09:00
parent 0df9166a13
commit 4e6b63df50
2 changed files with 7 additions and 3 deletions

View File

@ -284,7 +284,11 @@ public class ScreenMatch
} }
} }
if (results.Count == 0) if (results.Count > 0)
{
parent.Log("Match found");
}
else
{ {
parent.Log($"No match found"); parent.Log($"No match found");
} }

View File

@ -275,7 +275,7 @@ namespace WelsonJS.Service
Timer screenTimer = new Timer Timer screenTimer = new Timer
{ {
Interval = 5000 // 5 seconds Interval = 1000 // 1 seconds
}; };
screenTimer.Elapsed += OnScreenTime; screenTimer.Elapsed += OnScreenTime;
timers.Add(screenTimer); timers.Add(screenTimer);
@ -323,7 +323,7 @@ namespace WelsonJS.Service
} }
catch (Exception ex) catch (Exception ex)
{ {
Log($"Waiting a next screen time: {ex.Message}"); Log($"Waiting a next screen time... {ex.Message}");
} }
} }