summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1372437..969e287 100644
--- a/src/main.c
+++ b/src/main.c
@@ -191,7 +191,7 @@ static int tip_client_get_hdr(struct tip_client *cli)
header_len = trailer - cli->buf;
payload = cli->buf + header_len;
payload_len = cli->buf_len - header_len;
- cli->data_len += cli->buf_len;
+ cli->data_len += payload_len;
cli->buf_len = 0;
gettimeofday(&cli->tv_start, NULL);
cli->tv_last = cli->tv_start;