From ca319178f45ce6256aed7913565d445571f6db22 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 20 四月 2021 11:04:07 +0800 Subject: [PATCH] add go api, wrap C api, not finished. --- box/status_main.cc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/box/status_main.cc b/box/status_main.cc index 993fbee..3f075fb 100644 --- a/box/status_main.cc +++ b/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; -- Gitblit v1.8.0