diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-03 15:24:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-03 15:24:36 +0000 |
| commit | e5e46914d1e29986cbc236385ff8895cea2f6dbf (patch) | |
| tree | 84fc4b673a7e91caf365e7f8aafee63a6c9cdee9 /src | |
| parent | 583f6c9c2219f4270b16c36dfe7086e1b46161a5 (diff) | |
2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Made console readout more readable.
* src/ConsoleDownloadEngine.cc (sendStatistics)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ConsoleDownloadEngine.cc | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/ConsoleDownloadEngine.cc b/src/ConsoleDownloadEngine.cc index bed5e05c..aad5c4e1 100644 --- a/src/ConsoleDownloadEngine.cc +++ b/src/ConsoleDownloadEngine.cc @@ -69,6 +69,7 @@ void ConsoleDownloadEngine::sendStatistics(long long int currentSize, long long cout << "[" << "#" << firstRequestGroup->getGID() << " " + << "SIZE:" << Util::abbrevSize(firstRequestGroup->getDownloadLength()) << "B" << "/" @@ -79,29 +80,29 @@ void ConsoleDownloadEngine::sendStatistics(long long int currentSize, long long << 100*firstRequestGroup->getDownloadLength()/firstRequestGroup->getTotalLength() << "%)"; } - cout << "(" - << firstRequestGroup->numConnection - << "cn)"; - cout << "(" - << fixed << setprecision(2) - << dlSpeed/1024.0 << "KiB/s" - << ")"; + cout << " " + << "CN:" + << firstRequestGroup->numConnection; + cout << " " + << "SPD:" + << fixed << setprecision(2) << dlSpeed/1024.0 << "KiB/s"; if(eta > 0) { cout << " " << "ETA:" << Util::secfmt(eta); } + cout << "]"; if(_requestGroupMan->countRequestGroup() > 1) { cout << "(" << _requestGroupMan->countRequestGroup()-1 << "more...)"; } - cout << "]"; } if(_requestGroupMan->countRequestGroup() > 1) { cout << " " - << "[" << fixed << setprecision(2) << speed/1024.0 << "KiB/s" << "]"; + << "[TOTAL SPD:" + << fixed << setprecision(2) << speed/1024.0 << "KiB/s" << "]"; } { @@ -118,12 +119,12 @@ void ConsoleDownloadEngine::sendStatistics(long long int currentSize, long long << "(" << 100*entry->getCurrentLength()/entry->getTotalLength() << "%)"; + cout << "]"; if(_fileAllocationMan->countFileAllocationEntryInQueue() > 0) { cout << "(" << _fileAllocationMan->countFileAllocationEntryInQueue() << "waiting...)"; } - cout << "]"; } } { @@ -140,12 +141,12 @@ void ConsoleDownloadEngine::sendStatistics(long long int currentSize, long long << "(" << 100*entry->getCurrentLength()/entry->getTotalLength() << "%)"; + cout << "]"; if(_checkIntegrityMan->countCheckIntegrityEntry() > 1) { cout << "(" << _checkIntegrityMan->countCheckIntegrityEntry()-1 << "more...)"; } - cout << "]"; } } cout << flush; |
