提交 a7de79ba 编写于 作者: G Ganlin Zhao

[TS-782]<fix>: <TDinsight>when multiple network interface is present, net_in/net_out values are 0

上级 12a787f9
......@@ -379,9 +379,9 @@ bool taosGetCardInfo(int64_t *bytes, int64_t *rbytes, int64_t *tbytes) {
"%s %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64
" %" PRId64,
nouse0, &o_rbytes, &rpackets, &nouse1, &nouse2, &nouse3, &nouse4, &nouse5, &nouse6, &o_tbytes, &tpackets);
if (rbytes) *rbytes = o_rbytes;
if (tbytes) *tbytes = o_tbytes;
if (bytes) *bytes += (o_rbytes + o_tbytes);
if (rbytes) *rbytes += o_rbytes;
if (tbytes) *tbytes += o_tbytes;
if (bytes) *bytes += (o_rbytes + o_tbytes);
}
tfree(line);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册