Skip to content

Commit

Permalink
Changes to ambassador
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebenezer-group committed Feb 27, 2025
1 parent 8d47f54 commit ee4b002
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tiers/cmwA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ int main (int ac,char** av)try{
::printf("Signup was successful\n");
::std::exit(0);
}
::std::deque<cmwRequest> pendingRequests;

int sendBytes=0;
::std::deque<cmwRequest> pendingRequests;
int sentBytes=0;
for(;;){
auto spn=ring->submit();
if(sendBytes)cmwBuf.all(sendBytes);
sendBytes=0;
if(sentBytes)cmwBuf.all(sentBytes);
sentBytes=0;
for(auto cq:spn){
if(cq->res<=0){
::syslog(LOG_ERR,"Op failed %llu %d",cq->user_data,cq->res);
Expand Down Expand Up @@ -294,7 +294,7 @@ int main (int ac,char** av)try{
pendingRequests.pop_front();
}
ring->recv(false);
}else sendBytes+=cq->res;
}else sentBytes+=cq->res;
}
}
}catch(::std::exception& e){bail("Oops:%s",e.what());}

0 comments on commit ee4b002

Please sign in to comment.