diff options
author | Aaron Ball <nullspoon@oper.io> | 2019-12-29 23:18:06 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2019-12-29 23:18:06 -0700 |
commit | 015f6670680bc67dc26eeb1c5076b5c891bec4ae (patch) | |
tree | 91e2bd6756e43ec950af106c78e14ca9ea950831 | |
parent | 50410efe9e38d1f8b9f22a092171ceb55ebe23d1 (diff) | |
download | terminus-015f6670680bc67dc26eeb1c5076b5c891bec4ae.tar.gz terminus-015f6670680bc67dc26eeb1c5076b5c891bec4ae.tar.xz |
Replace hardcoded seconds in day with macro
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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( |