version 1.222, 2019/12/26 14:48:29 |
version 1.223, 2020/01/12 21:07:07 |
|
|
struct session *s; |
struct session *s; |
const char *name; |
const char *name; |
struct tty *tty = &c->tty; |
struct tty *tty = &c->tty; |
const char *types[] = TTY_TYPES; |
|
|
|
if (ft->s == NULL) |
if (ft->s == NULL) |
ft->s = c->session; |
ft->s = c->session; |
|
|
|
|
if (tty->term_name != NULL) |
if (tty->term_name != NULL) |
format_add(ft, "client_termname", "%s", tty->term_name); |
format_add(ft, "client_termname", "%s", tty->term_name); |
if (tty->term_name != NULL) |
|
format_add(ft, "client_termtype", "%s", types[tty->term_type]); |
|
|
|
format_add_tv(ft, "client_created", &c->creation_time); |
format_add_tv(ft, "client_created", &c->creation_time); |
format_add_tv(ft, "client_activity", &c->activity_time); |
format_add_tv(ft, "client_activity", &c->activity_time); |