diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-02 16:13:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-02 16:13:29 +0100 |
| commit | 5d48e36440d6b4ebf4c04a413bd340b214ba8c42 (patch) | |
| tree | 8f4fafd8cdbcadac8efde0cf1ac045ab1301af19 /src/lib/server.cc | |
| parent | 9fdcacab9988f4cc5d44a6fab3ab294f5005f468 (diff) | |
Use String::compose in a few places.
Diffstat (limited to 'src/lib/server.cc')
| -rw-r--r-- | src/lib/server.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc index f8c4425d9..28236e3e0 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -163,9 +163,7 @@ Server::worker_thread () if (frame >= 0) { struct timeval end; gettimeofday (&end, 0); - stringstream s; - s << "Encoded frame " << frame << " in " << (seconds (end) - seconds (start)); - _log->log (s.str ()); + _log->log (String::compose ("Encoded frame %1 in %2", frame, seconds (end) - seconds (start))); } _worker_condition.notify_all (); @@ -175,9 +173,7 @@ Server::worker_thread () void Server::run (int num_threads) { - stringstream s; - s << "Server starting with " << num_threads << " threads."; - _log->log (s.str ()); + _log->log (String::compose ("Server starting with %1 threads", num_threads)); for (int i = 0; i < num_threads; ++i) { _worker_threads.push_back (new thread (bind (&Server::worker_thread, this))); |
