diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-04-24 11:00:32 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-04-24 11:00:32 +0100 |
commit | ce52e45d44b38fcedfe27bce519ce6f4fc76a25d (patch) | |
tree | 03a44f9facd3deb64ec20b08af7323e803fc7668 /format.c | |
parent | 4f3c31a6b63f4489bfc672b510036fd8d9491595 (diff) | |
parent | 70bc8ef8450bfd2ae90df86f4c02437a4bb83319 (diff) | |
download | rtmux-ce52e45d44b38fcedfe27bce519ce6f4fc76a25d.tar.gz rtmux-ce52e45d44b38fcedfe27bce519ce6f4fc76a25d.tar.bz2 rtmux-ce52e45d44b38fcedfe27bce519ce6f4fc76a25d.zip |
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -288,7 +288,7 @@ format_session(struct format_tree *ft, struct session *s) format_add(ft, "session_group", "%u", session_group_index(sg)); t = s->creation_time.tv_sec; - format_add(ft, "session_created", "%ld", (long) t); + format_add(ft, "session_created", "%lld", (long long) t); tim = ctime(&t); *strchr(tim, '\n') = '\0'; format_add(ft, "session_created_string", "%s", tim); @@ -314,13 +314,13 @@ format_client(struct format_tree *ft, struct client *c) format_add(ft, "client_termname", "%s", c->tty.termname); t = c->creation_time.tv_sec; - format_add(ft, "client_created", "%ld", (long) t); + format_add(ft, "client_created", "%lld", (long long) t); tim = ctime(&t); *strchr(tim, '\n') = '\0'; format_add(ft, "client_created_string", "%s", tim); t = c->activity_time.tv_sec; - format_add(ft, "client_activity", "%ld", (long) t); + format_add(ft, "client_activity", "%lld", (long long) t); tim = ctime(&t); *strchr(tim, '\n') = '\0'; format_add(ft, "client_activity_string", "%s", tim); |