lichao
2021-04-20 ca319178f45ce6256aed7913565d445571f6db22
box/status_main.cc
@@ -41,7 +41,7 @@
   auto showStatus = [&]() {
      auto next = Now();
      const uint64_t start = ToMs(next);
      auto last = 0;
      auto last = 0ul;
      while (run) {
         std::this_thread::sleep_until(next);
         auto passed = ToMs(next) - start;
@@ -70,7 +70,7 @@
         char buf[200] = "\n";
         auto Print = [&](bool new_line) {
            int n = sprintf(buf, "\r%6ds avail : %12ld = %s %6ds", sec, cur, Pretty(cur).c_str() + 1, sec);
            int n = sprintf(buf, "\r%6lds avail : %12ld = %s %6lds", sec, cur, Pretty(cur).c_str() + 1, sec);
            printf("%s", buf);
            if (new_line) {
               auto diff = cur - last;