From aa4ea8889c827df4b178b6ae6259b82e86bfbc5f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 15 Oct 2016 19:02:54 +0900 Subject: clang-format-3.9 --- examples/libaria2ex.cc | 8 +++++--- examples/libaria2wx.cc | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'examples') 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( - now - start).count(); + auto count = + std::chrono::duration_cast(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; diff --git a/examples/libaria2wx.cc b/examples/libaria2wx.cc index 88e8231e..71a0b069 100644 --- a/examples/libaria2wx.cc +++ b/examples/libaria2wx.cc @@ -389,8 +389,9 @@ int downloaderJob(JobQueue& jobq, NotifyQueue& notifyq) break; } auto now = std::chrono::steady_clock::now(); - auto count = std::chrono::duration_cast( - now - start).count(); + auto count = + std::chrono::duration_cast(now - start) + .count(); while (!jobq.empty()) { std::unique_ptr job = jobq.pop(); job->execute(session); -- cgit