Skip to content

Commit

Permalink
Add PYRIN support
Browse files Browse the repository at this point in the history
  • Loading branch information
Alarmod committed Dec 4, 2023
1 parent de5d70b commit 0efacbc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2882,7 +2882,7 @@ static void ParseMessage(object sendingProcess, string message)

criticalEvent(sendingProcess);
}
else if (message.Contains("karlsen_miner::miner] Closing miner") || message.Contains("karlsen_miner::miner] Workers stalled or crashed") || message.Contains("karlsen_miner] Client closed, reconnecting"))
else if (message.Contains("_miner::miner] Closing miner") || message.Contains("_miner::miner] Workers stalled or crashed") || message.Contains("_miner] Client closed, reconnecting"))
{
Console.ForegroundColor = ConsoleColor.Magenta;
Console.WriteLine(message);
Expand All @@ -2896,8 +2896,8 @@ static void ParseMessage(object sendingProcess, string message)
Console.WriteLine(message);
Console.ForegroundColor = ConsoleColor.White;
}
// xmrig, wildrig, SRB, OneZero and karlsen_miner
else if (message.Contains("speed 10s/60s/15m") || message.Contains("hashrate: 10s:") || (message.Contains("15m:") && message.Contains("Ignored:")) || message.Contains("Run time") || message.Contains("Uptime:") || message.Contains("karlsen_miner::miner] Current hashrate is"))
// xmrig, wildrig, SRB, OneZero and (karlsen_miner or pyrin_miner)
else if (message.Contains("speed 10s/60s/15m") || message.Contains("hashrate: 10s:") || (message.Contains("15m:") && message.Contains("Ignored:")) || message.Contains("Run time") || message.Contains("Uptime:") || message.Contains("_miner::miner] Current hashrate is"))
{
if (mainThread_enabled)
{
Expand Down Expand Up @@ -2961,7 +2961,7 @@ static void ParseMessage(object sendingProcess, string message)
Console.WriteLine(message + Environment.NewLine + " Со времени последнего критического для добычи события/шары прошло '{0}' секунд", span.ToString("0.000").Replace(',', '.'));
else if (message.Contains("15m:") && message.Contains("Ignored:"))
Console.WriteLine(message + Environment.NewLine + " Со времени последнего критического для добычи события/шары прошло '{0}' секунд", span.ToString("0.000").Replace(',', '.'));
else if (message.Contains("karlsen_miner::miner] Current hashrate is"))
else if (message.Contains("_miner::miner] Current hashrate is"))
Console.WriteLine(message + Environment.NewLine + " Со времени последнего критического для добычи события/шары прошло '{0}' секунд", span.ToString("0.000").Replace(',', '.'));
else
Console.WriteLine(message + ", со времени последнего критического для добычи события/шары прошло '{0}' секунд", span.ToString("0.000").Replace(',', '.'));
Expand All @@ -2974,7 +2974,7 @@ static void ParseMessage(object sendingProcess, string message)
Console.WriteLine(message);
}
} // Проверка на accepted
else if ((message.ToLower(CultureInfo.CurrentCulture).Contains("accepted") && !message.Contains("Accepted:")) || message.Contains("[ OK ]") || message.Contains("[ BLOCK ]") || (message.Contains("diff") && message.Contains("[B/A/T]")))
else if ((message.ToLower(CultureInfo.CurrentCulture).Contains("accepted") && !message.Contains("Accepted:")) || message.Contains("[ OK ]") || message.Contains("Found a block") || message.Contains("[ BLOCK ]") || (message.Contains("diff") && message.Contains("[B/A/T]")))
{
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine(message);
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
// Minor Version
// Build Number
//
[assembly: AssemblyVersion("1.1.933")]
[assembly: AssemblyFileVersion("1.1.933")]
[assembly: AssemblyVersion("1.1.935")]
[assembly: AssemblyFileVersion("1.1.935")]

Binary file modified bin/Release/PoolWatcher.exe
Binary file not shown.

0 comments on commit 0efacbc

Please sign in to comment.