| 462 | } |
| 463 | |
| 464 | static void ShowTransfered (std::stringstream& s, size_t transfer) |
| 465 | { |
| 466 | auto bytes = transfer & 0x03ff; |
| 467 | transfer >>= 10; |
| 468 | auto kbytes = transfer & 0x03ff; |
| 469 | transfer >>= 10; |
| 470 | auto mbytes = transfer & 0x03ff; |
| 471 | transfer >>= 10; |
| 472 | auto gbytes = transfer; |
| 473 | |
| 474 | if (gbytes) |
| 475 | s << gbytes << " GB, "; |
| 476 | if (mbytes) |
| 477 | s << mbytes << " MB, "; |
| 478 | if (kbytes) |
| 479 | s << kbytes << " KB, "; |
| 480 | s << bytes << " Bytes\n"; |
| 481 | } |
| 482 | |
| 483 | static void ShowNetworkStatus (std::stringstream& s, RouterStatus status, bool testing, RouterError error) |
| 484 | { |
no outgoing calls
no test coverage detected