=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.125 retrieving revision 1.126 diff -u -r1.125 -r1.126 --- src/usr.bin/tmux/format.c 2017/04/18 15:44:17 1.125 +++ src/usr.bin/tmux/format.c 2017/04/19 06:52:27 1.126 @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.125 2017/04/18 15:44:17 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.126 2017/04/19 06:52:27 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -1154,7 +1154,9 @@ 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); + + format_add(ft, "client_written", "%zu", c->written); + format_add(ft, "client_discarded", "%zu", c->discarded); name = server_client_get_key_table(c); if (strcmp(c->keytable->name, name) == 0)