diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-10-15 19:02:54 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-10-15 19:02:54 +0900 |
| commit | aa4ea8889c827df4b178b6ae6259b82e86bfbc5f (patch) | |
| tree | 5e527bbdeb4f1703c615827ede961e11c2983440 /examples/libaria2ex.cc | |
| parent | a7fcf83bdfabf213d80e32d72561764f82e6782d (diff) | |
clang-format-3.9
Diffstat (limited to 'examples/libaria2ex.cc')
| -rw-r--r-- | examples/libaria2ex.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/libaria2ex.cc b/examples/libaria2ex.cc index 85373760..9d0ddc8c 100644 --- a/examples/libaria2ex.cc +++ b/examples/libaria2ex.cc @@ -111,8 +111,9 @@ int main(int argc, char** argv) // the application can call aria2 API to add URI or query progress // here auto now = std::chrono::steady_clock::now(); - auto count = std::chrono::duration_cast<std::chrono::milliseconds>( - now - start).count(); + auto count = + std::chrono::duration_cast<std::chrono::milliseconds>(now - start) + .count(); // Print progress information once per 500ms if (count >= 500) { start = now; @@ -130,7 +131,8 @@ int main(int argc, char** argv) << "(" << (dh->getTotalLength() > 0 ? (100 * dh->getCompletedLength() / dh->getTotalLength()) - : 0) << "%)" + : 0) + << "%)" << " D:" << dh->getDownloadSpeed() / 1024 << "KiB/s, U:" << dh->getUploadSpeed() / 1024 << "KiB/s" << std::endl; |
