From 015f6670680bc67dc26eeb1c5076b5c891bec4ae Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Sun, 29 Dec 2019 23:18:06 -0700 Subject: Replace hardcoded seconds in day with macro --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 674fa14..f65ceb1 100644 --- a/src/main.c +++ b/src/main.c @@ -186,7 +186,7 @@ int main(int argc, char* argv[]) { if((now - lastlogin) > threshold) { printf("You're dead!\n"); exec_cmd(cmd); - } else if((lastlogin - now) > 86400) { + } else if((lastlogin - now) > SECONDS_IN_DAY) { // Abort if last login is too far in the future. // This should account for when printf( -- cgit v1.2.3