Skip to content

Commit

Permalink
Cleanup server output a bit (#3914)
Browse files Browse the repository at this point in the history
* Cleanup server output a bit

* clang-format
  • Loading branch information
eisenhauer committed Nov 15, 2023
1 parent 3c21c37 commit 64392d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/adios2/toolkit/remote/remote_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ static void GetRequestHandler(CManager cm, CMConnection conn, void *vevent, void
Response.ReadResponseCondition = GetMsg->GetResponseCondition; \
Response.Dest = GetMsg->Dest; /* final data destination in client memory space */ \
if (verbose >= 2) \
std::cout << "Returning " << Response.Size << " " << readable_size(Response.Size) \
<< " for Get<" << TypeOfVar << ">(" << VarName << ")" << b << std::endl; \
std::cout << "Returning " << readable_size(Response.Size) << " for Get<" << TypeOfVar \
<< ">(" << VarName << ")" << b << std::endl; \
f->m_BytesSent += Response.Size; \
f->m_OperationCount++; \
TotalGetBytesSent += Response.Size; \
Expand Down Expand Up @@ -458,7 +458,7 @@ static atom_t CM_IP_PORT = -1;
static bool server_timeout(void *CMvoid, int time_since_service)
{
CManager cm = (CManager)CMvoid;
if (verbose)
if (verbose && (time_since_service > 90))
std::cout << time_since_service << " seconds since last service.\n";
if (time_since_service > 600)
{
Expand Down Expand Up @@ -584,7 +584,6 @@ int main(int argc, char **argv)

ServerRegisterHandlers(ev_state);

std::cout << "doing Run Network" << std::endl;
CMrun_network(cm);
return 0;
}

0 comments on commit 64392d0

Please sign in to comment.