summaryrefslogtreecommitdiff
path: root/examples/libaria2ex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/libaria2ex.cc')
-rw-r--r--examples/libaria2ex.cc8
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;