mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Improve text formatting in 'Host_Status_PrintClient'
Better 'status' command output.
This commit is contained in:
parent
fe0cce731b
commit
3463d0070f
@ -44,21 +44,21 @@ void Host_Status_PrintClient(CClient* client, bool bShowAddress, void (*print) (
|
||||
|
||||
if (nci != NULL)
|
||||
{
|
||||
print("# %i \"%s\" %llu %s %i %i %s %d",
|
||||
print("# %i \"%s\" %llu %s %i %i %s %d\n",
|
||||
client->GetHandle(), client->GetServerName(), client->GetNucleusID(), COM_FormatSeconds(static_cast<int>(nci->GetTimeConnected())),
|
||||
static_cast<int>(1000.0f * nci->GetAvgLatency(FLOW_OUTGOING)), static_cast<int>(100.0f * nci->GetAvgLoss(FLOW_INCOMING)), state, nci->GetDataRate());
|
||||
|
||||
if (bShowAddress)
|
||||
{
|
||||
print(" %s", nci->GetAddress());
|
||||
print(" %s\n", nci->GetAddress());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print("#%2i \"%s\" %llu %s", client->GetHandle(), client->GetServerName(), client->GetNucleusID(), state);
|
||||
print("#%2i \"%s\" %llu %s\n", client->GetHandle(), client->GetServerName(), client->GetNucleusID(), state);
|
||||
}
|
||||
|
||||
print("\n");
|
||||
//print("\n");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user