client: dec sum_stat_clients if one a client is disconnected
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Oct 2011 12:20:22 +0000 (14:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Oct 2011 12:20:22 +0000 (14:20 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c

index c40511ebe553b3b0f5dd8079bdbb4c072a2c4140..31b4862775eb159775d2fa784a28a9032cc600f6 100644 (file)
--- a/client.c
+++ b/client.c
@@ -137,6 +137,7 @@ static void remove_client(struct fio_client *client)
 
        free(client);
        nr_clients--;
 
        free(client);
        nr_clients--;
+       sum_stat_clients--;
 }
 
 static void __fio_client_add_cmd_option(struct fio_client *client,
 }
 
 static void __fio_client_add_cmd_option(struct fio_client *client,