MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / ShowTransfered

Function ShowTransfered

daemon/Daemon.cpp:464–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

PrintMainWindowTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected