mirror of
https://github.com/irssi/irssi.git
synced 2024-08-25 04:04:18 -04:00
Don't assume the size of time_t.
This commit is contained in:
parent
0d4f13d20f
commit
8d5142f032
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user