From d4a1e59e1dac399a1e0117fc5184732507b212c6 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期四, 24 六月 2021 18:15:26 +0800
Subject: [PATCH] rebuild bhome_msg.proto,bhome_msg_api.proto
---
box/status_main.cc | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/box/status_main.cc b/box/status_main.cc
index a435c2f..159e623 100644
--- a/box/status_main.cc
+++ b/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 : %dM\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(); };
--
Gitblit v1.8.0