Diff between b086260ac6d4ac765bdc443bb50bd304b0d076c9 and d89af9acb7283f8f446c976a0f3f425424768d1e
Changed Files
| File | Additions | Deletions | Status |
| monitor/analyze.c | +2 | -1 | modified |
Full Patch
diff --git a/monitor/analyze.c b/monitor/analyze.c
index 0c74e8f..ac23e13 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 */