lichao
2021-06-02 94f2a94f38261528d98a8ece4fcdb386cbca6566
box/status_main.cc
@@ -38,15 +38,12 @@
      shm_size = 50;
   }
   auto DisplayName = [&]() -> std::string {
      if (shm_name == BHomeShm().name()) {
         return "[bhome shm]";
      } else {
         return shm_name;
      }
      return shm_name;
   };
   printf("monitoring shm : %s, size : %ldM\n", DisplayName().c_str(), shm_size);
   SharedMemory shm(shm_name, 1024 * 1024 * shm_size);
   shm_size = shm.get_size() / 1024 / 1024;
   printf("monitoring shm : %s, size : %ldM\n", DisplayName().c_str(), shm_size);
   std::atomic<bool> run(true);
   auto Now = []() { return steady_clock::now(); };