diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2013-04-30 17:22:00 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2013-04-30 17:22:00 +0200 |
commit | ce0727c4f43d4e043d8f0d338c8a4c8db53000f2 (patch) | |
tree | 7d58e13d56597cc741612e7c38f8ba792c9e91b5 /datastore-leveldb/src/web.cpp | |
parent | f91256a7483ca8b097cd4732176e38581460978f (diff) | |
download | ebus-alt-ce0727c4f43d4e043d8f0d338c8a4c8db53000f2.tar.gz ebus-alt-ce0727c4f43d4e043d8f0d338c8a4c8db53000f2.zip |
leveldb: use outbuf for auctal_size
Diffstat (limited to 'datastore-leveldb/src/web.cpp')
-rw-r--r-- | datastore-leveldb/src/web.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/datastore-leveldb/src/web.cpp b/datastore-leveldb/src/web.cpp index cbadc57..443e782 100644 --- a/datastore-leveldb/src/web.cpp +++ b/datastore-leveldb/src/web.cpp @@ -173,6 +173,7 @@ void web_handle_api_range_size(const boost::cmatch &match, struct mg_connection outbuf.seekp(0); actual_size++; } - mg_printf(conn, "], \"actual_size\":%ld}\r\n", actual_size); + outbuf << "], \"actual_size\":" << actual_size << "}\r\n"; + mg_write(conn, outbuf.str().c_str(), outbuf.tellp()); delete it; } |