testing
[m6w6/libmemcached] / src / bin / memslap.cc
index d1c58cd6030e33d70e222634af76826180f6ce33..baf6df6387e07a7390398589e9fde6712255b370 100644 (file)
@@ -210,6 +210,10 @@ static opt_apply wrap_stoul(unsigned long &ul) {
   };
 }
 
+static std::ostream &align(std::ostream &io) {
+  return io << std::right << std::setw(8);
+}
+
 int main(int argc, char *argv[]) {
   client_options opt{PROGRAM_NAME, PROGRAM_VERSION, PROGRAM_DESCRIPTION};
   auto concurrency = DEFAULT_CONCURRENCY;
@@ -270,10 +274,6 @@ int main(int argc, char *argv[]) {
   auto total_start = time_clock::now();
   std::cout << std::fixed << std::setprecision(3);
 
-  auto align = [](std::ostream &io) -> std::ostream &{
-    return io << std::right << std::setw(8);
-  };
-
   if (opt.isset("flush")) {
     if (opt.isset("verbose")) {
       std::cout << "- Flushing servers ...\n";