diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-16 11:46:39 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-16 11:46:39 +0000 |
| commit | 343228629a69870cf47640a63e32f7b237403aa5 (patch) | |
| tree | 33cbd353077d14bb50cedc3d88215ccbf63ad937 /src | |
| parent | e8a3167596a7a4b5cc51b6c971dd5582f0357a2e (diff) | |
2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/ConsoleCalc.cc (calculateStat): Hide SPD after the
download
finished.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ConsoleStatCalc.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ConsoleStatCalc.cc b/src/ConsoleStatCalc.cc index d30ce945..99a6300e 100644 --- a/src/ConsoleStatCalc.cc +++ b/src/ConsoleStatCalc.cc @@ -79,9 +79,11 @@ ConsoleStatCalc::calculateStat(const RequestGroupManHandle& requestGroupMan, cout << " " << "CN:" << firstRequestGroup->getNumConnection(); - cout << " " - << "SPD:" - << fixed << setprecision(2) << stat.getDownloadSpeed()/1024.0 << "KiB/s"; + if(!firstRequestGroup->downloadFinished()) { + cout << " " + << "SPD:" + << fixed << setprecision(2) << stat.getDownloadSpeed()/1024.0 << "KiB/s"; + } if(stat.getSessionUploadLength() > 0) { cout << " " << "UP:" |
