Add a format for number of bytes writtent to client, useful for debugging.

This commit is contained in:
nicm
2017-04-18 15:44:17 +00:00
parent aace1ead1e
commit fb3c5efa50
4 changed files with 4 additions and 0 deletions

View File

@ -1154,6 +1154,7 @@ format_defaults_client(struct format_tree *ft, struct client *c)
format_add_tv(ft, "client_created", &c->creation_time);
format_add_tv(ft, "client_activity", &c->activity_time);
format_add(ft, "client_written", "%zu", tty->written);
name = server_client_get_key_table(c);
if (strcmp(c->keytable->name, name) == 0)