Skip to content

Commit

Permalink
add CPU usage to telnet ping
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Mar 3, 2024
1 parent 0ab766f commit 67d6de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/telnet_server.pas
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ procedure TTelnetThreadHelper.ping;
magic := TFslObject.nextMagic;
if FServer.FShuttingDown then
begin
send('$@ping: '+inttostr(GetThreadCount)+' threads; shutting down');
send('$@ping: '+Logging.cpu.usage+' '+inttostr(GetThreadCount)+' threads; shutting down');
end
else if (now > FNextPing) then
begin
Expand All @@ -317,7 +317,7 @@ procedure TTelnetThreadHelper.ping;
begin
mem := mem + ep.cacheSize(magic);
end;
send('$@ping: '+inttostr(GetThreadCount)+' threads, '+Logging.MemoryStatus(true)+', '+DescribeBytes(mem)+' MB used');
send('$@ping: '+Logging.cpu.usage+' '+inttostr(GetThreadCount)+' threads, '+Logging.MemoryStatus(true)+', '+DescribeBytes(mem)+' MB used');
end;
FNextPing := now + (DATETIME_SECOND_ONE * 10);
end;
Expand Down

0 comments on commit 67d6de9

Please sign in to comment.