diff options
-rw-r--r-- | src/uptime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uptime.c b/src/uptime.c index 9d6df3514..5c644c4c0 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -92,7 +92,7 @@ print_uptime (int n, const STRUCT_UTMP *this) struct timeval result; size_t result_len = sizeof result; - if (0 <= sysctl (request, 2, &result, &result_len, NULL, 0)) + if (sysctl (request, 2, &result, &result_len, NULL, 0) >= 0) boot_time = result.tv_sec; } #endif |