src/devices/mesh/mesh-wifi-interface-mac.cc
changeset 5098 13ded9ff11c4
parent 5073 a60c18b05d41
child 5114 505e762ea818
child 5118 3a0893ec9819
equal deleted inserted replaced
5097:f07f268eef67 5098:13ded9ff11c4
   646 //Statistics:
   646 //Statistics:
   647 void
   647 void
   648 MeshWifiInterfaceMac::Statistics::Print (std::ostream & os) const
   648 MeshWifiInterfaceMac::Statistics::Print (std::ostream & os) const
   649 {
   649 {
   650   os << "<Statistics "
   650   os << "<Statistics "
       
   651     // TODO txBeacons
   651     "rxBeacons=\"" << recvBeacons << "\" "
   652     "rxBeacons=\"" << recvBeacons << "\" "
   652     "txFrames=\"" << sentFrames << "\" "
   653     "txFrames=\"" << sentFrames << "\" "
   653     "txBytes=\"" << (double)sentBytes / 1024.0 << "K\" "
   654     "txBytes=\"" << sentBytes << "\" "
   654     "rxFrames=\"" << recvFrames << "\" "
   655     "rxFrames=\"" << recvFrames << "\" "
   655     "rxBytes=\"" << (double)recvBytes / 1024.0 << "K\"/>\n";
   656     "rxBytes=\"" << recvBytes << "\"/>\n";
   656 }
   657 }
   657 void
   658 void
   658 MeshWifiInterfaceMac::Report (std::ostream & os) const
   659 MeshWifiInterfaceMac::Report (std::ostream & os) const
   659 {
   660 {
   660   os << "<Interface "
   661   os << "<Interface "
   661     "BeaconInterval=\"" << GetBeaconInterval ().GetSeconds() << "s\" "
   662     "BeaconInterval=\"" << GetBeaconInterval ().GetSeconds() << "\" "
   662     "Channel=\"" << GetFrequencyChannel () << "\" "
   663     "Channel=\"" << GetFrequencyChannel () << "\" "
   663     "Address = \"" << GetAddress () << "\">\n";
   664     "Address = \"" << GetAddress () << "\">\n";
   664   m_stats.Print (os);
   665   m_stats.Print (os);
   665   os << "</Interface>\n";
   666   os << "</Interface>\n";
   666 }
   667 }