Message ID | 20220216081518.2956782-1-josephsih@chromium.org |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v1] monitor: fix division by zero about conn->tx_pkt_med | expand |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=614851 ---Test result--- Test Summary: CheckPatch PASS 1.49 seconds GitLint PASS 1.01 seconds Prep - Setup ELL PASS 51.66 seconds Build - Prep PASS 0.93 seconds Build - Configure PASS 10.55 seconds Build - Make PASS 1818.86 seconds Make Check PASS 12.41 seconds Make Check w/Valgrind PASS 534.70 seconds Make Distcheck PASS 283.60 seconds Build w/ext ELL - Configure PASS 10.79 seconds Build w/ext ELL - Make PASS 1795.15 seconds Incremental Build with patchesPASS 0.00 seconds --- Regards, Linux Bluetooth
diff --git a/monitor/analyze.c b/monitor/analyze.c index 0c74e8f2e..ac23e13bb 100644 --- a/monitor/analyze.c +++ b/monitor/analyze.c @@ -161,7 +161,8 @@ static void conn_destroy(void *data) break; } - conn->tx_pkt_med = conn->tx_bytes / conn->tx_num; + if (conn->tx_num > 0) + conn->tx_pkt_med = conn->tx_bytes / conn->tx_num; printf(" Found %s connection with handle %u\n", str, conn->handle); /* TODO: Store address type */