Changeset 248 in flair-src for trunk/tools/FlairGCS/src/UdtSocket.cpp


Ignore:
Timestamp:
Jun 4, 2018, 2:45:37 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

add orange icon to gcs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/UdtSocket.cpp

    r247 r248  
    3636  socketType=unknown;
    3737  total_received=0;
     38  pktSndLossTotal=0;
    3839 
    3940  bool blocking = false;
     
    5455  udtstats_timer->stop();
    5556  if(destroySocket) UDT::close(socket);
    56 fprintf(stderr,"fin udt\n");
    5757}
    5858
     
    9595     
    9696  }*/
     97  bool loosingPackets=false;
     98  if(perf.pktSndLossTotal>pktSndLossTotal) loosingPackets=true;
     99  pktSndLossTotal=perf.pktSndLossTotal;
    97100  stats=QString("rx rate %1kB/s, round trip %2ms, lost packets %3").arg(rxRate,0,'f',3).arg(perf.msRTT,0,'f',3).arg(perf.pktSndLossTotal);
    98   UDTStats(stats);
    99  
     101  UDTStats(stats,loosingPackets);
    100102}
    101103
     
    124126    return;
    125127  }
    126   //ffprintf(stderr,stderr,"receiveData %x\n",thread());
     128  //fprintf(stderr,stderr,"receiveData %x\n",thread());
    127129 
    128130  while (!stop) {
Note: See TracChangeset for help on using the changeset viewer.