summaryrefslogtreecommitdiffstats
path: root/src/resperf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resperf.c')
-rw-r--r--src/resperf.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/resperf.c b/src/resperf.c
index ed0ccc5..a6d120c 100644
--- a/src/resperf.c
+++ b/src/resperf.c
@@ -405,11 +405,18 @@ static void perf__net_event(struct perf_net_socket* sock, perf_socket_event_t ev
ramp_bucket* b = find_bucket(time_now);
switch (event) {
- case perf_socket_event_reconnect:
- num_reconnections++;
- case perf_socket_event_connect:
+ case perf_socket_event_reconnected:
+ case perf_socket_event_connected:
b->connections++;
b->conn_latency_sum += elapsed_time / (double)MILLION;
+ break;
+
+ case perf_socket_event_reconnecting:
+ num_reconnections++;
+ break;
+
+ default:
+ break;
}
}