Browse Source

minor tweaks

pull/123/head
notgiven688 3 years ago
parent
commit
90db5bf0e1
2 changed files with 7 additions and 5 deletions
  1. +5
    -4
      server/Server/PoolConnection.cs
  2. +2
    -1
      server/Server/Program.cs

+ 5
- 4
server/Server/PoolConnection.cs View File

@ -218,7 +218,7 @@ namespace Server {
List<Client> cllist2 = new List<Client> (mypc.WebClients.Values);
Console.WriteLine ("Sending to {0} client(s)!", cllist2.Count);
Console.WriteLine ("Sending job to {0} client(s)!", cllist2.Count);
foreach (Client ev in cllist2) {
ReceiveJob (ev, mypc.LastJob, mypc.LastSolved);
@ -230,7 +230,8 @@ namespace Server {
ReceiveError (mypc.LastSender, msg);
} else {
Console.WriteLine ("Pool is sending nonsense...");
CConsole.WriteWarning(() =>
Console.WriteLine ("Pool is sending nonsense."));
}
}
}
@ -350,8 +351,8 @@ namespace Server {
if (mypc == null) {
CConsole.WriteInfo( () => {
Console.WriteLine ("{0}: established new pool connection",client.WebSocket.ConnectionInfo.Id);
Console.WriteLine ("{0} {1}", client.Login, client.Pool);
Console.WriteLine ("{0}: initiated new pool connection",client.WebSocket.ConnectionInfo.Id);
Console.WriteLine ("{0} {1} {2}", login, password, url);
});

+ 2
- 1
server/Server/Program.cs View File

@ -463,6 +463,7 @@ namespace Server {
ourself = new Client ();
ourself.Login = DevXMRAddress;
ourself.Pool = DevPoolUrl;
ourself.Created = ourself.LastPoolJobTime = DateTime.Now;
ourself.Password = DevPoolPwd;
ourself.WebSocket = new EmptyWebsocket ();
@ -1041,7 +1042,7 @@ namespace Server {
}
CConsole.WriteInfo (() =>
Console.WriteLine ("[{0}] heartbeat; connections client/pool: {1}/{2}; jobqueue: {3} k; speed total/dev: {4}/{5} kH/s",
Console.WriteLine ("[{0}] heartbeat; connections client/pool: {1}/{2}; jobqueue: {3}k; speed total/dev: {4}/{5} kH/s",
DateTime.Now.ToString (),
clients.Count,
PoolConnectionFactory.Connections.Count,

Loading…
Cancel
Save