summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-18 15:44:17 +0000
committernicm <nicm>2017-04-18 15:44:17 +0000
commitfb3c5efa503214b08cae72f89e73ed4eb1bf957c (patch)
tree6364cf5d1f9eb7c6bcdf473d5faf8389b295805a /format.c
parentaace1ead1e711412e4be0287972a389248583ad6 (diff)
Add a format for number of bytes writtent to client, useful for debugging.
Diffstat (limited to 'format.c')
-rw-r--r--format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/format.c b/format.c
index 5844a6ab..633be101 100644
--- a/format.c
+++ b/format.c
@@ -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)