summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2014-06-10 12:45:57 -0400
committerDavid Hill <dhill@conformal.com>2014-06-10 12:45:57 -0400
commit8d5142f03291c73937119209e9db1eb418dc26d4 (patch)
tree3b814943ec59239ccb3bd76cd9bf828593030ec2 /src
parent0d4f13d20f304927277ad327c714481bc97de48f (diff)
downloadirssi-8d5142f03291c73937119209e9db1eb418dc26d4.zip
Don't assume the size of time_t.
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-core-commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c
index 31a5ca9b..7b1d7b94 100644
--- a/src/fe-common/core/fe-core-commands.c
+++ b/src/fe-common/core/fe-core-commands.c
@@ -177,7 +177,7 @@ static void cmd_uptime(char *data)
g_return_if_fail(data != NULL);
if (*data == '\0') {
- uptime = time(NULL) - client_start_time;
+ uptime = (long)difftime(time(NULL), client_start_time);
printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
"Uptime: %ldd %ldh %ldm %lds",
uptime/3600/24, uptime/3600%24,