X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=client.c;h=c8e4a4dcff728935859270d720d1bb6e062e8080;hp=bcbc1c06599a202d981d0491545266a59b735e1a;hb=c2c9458515bda1f77e25f95122ef6ec8d8cc3ec7;hpb=28d7c363e2f82d09cf7f6aa772d255712aff5c5c diff --git a/client.c b/client.c index bcbc1c06..c8e4a4dc 100644 --- a/client.c +++ b/client.c @@ -482,13 +482,15 @@ static void handle_probe(struct fio_net_cmd *cmd) static int handle_client(struct fio_client *client, int one) { struct fio_net_cmd *cmd; - int done = 0; + int done = 0, did_cmd = 0; dprint(FD_NET, "client: handle %s\n", client->hostname); while ((cmd = fio_net_recv_cmd(client->fd, 1)) != NULL) { - dprint(FD_NET, "%s: got cmd op %d\n", client->hostname, - cmd->opcode); + did_cmd++; + + dprint(FD_NET, "client: got cmd op %d from %s\n", + cmd->opcode, client->hostname); switch (cmd->opcode) { case FIO_NET_CMD_QUIT: @@ -542,7 +544,7 @@ static int handle_client(struct fio_client *client, int one) break; } - return 0; + return did_cmd; } int fio_handle_clients(void)