瀏覽代碼

fixing byte counting

Aaron Johnson 1 年之前
父節點
當前提交
1652b014e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      App/net.cpp

+ 1 - 1
App/net.cpp

@@ -82,7 +82,7 @@ void NodeIO::async_send_commands()
                 &(commands_inflight.front()) == commandp);
             uint8_t *data = std::get<1>(*commandp);
             commands_inflight.pop_front();
-            bytes_sent += std::get<2>(*commandp);
+            bytes_sent = bytes_sent + 5 + std::get<2>(*commandp);
             if (commands_inflight.size() > 0) {
                 async_send_commands();
             }