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 | |
| parent | a7fcf83bdfabf213d80e32d72561764f82e6782d (diff) | |
clang-format-3.9
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/libaria2ex.cc | 8 | ||||
| -rw-r--r-- | examples/libaria2wx.cc | 5 |
2 files changed, 8 insertions, 5 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; 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<std::chrono::milliseconds>( - now - start).count(); + auto count = + std::chrono::duration_cast<std::chrono::milliseconds>(now - start) + .count(); while (!jobq.empty()) { std::unique_ptr<Job> job = jobq.pop(); job->execute(session); |
