mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
uptime: omit unnecessary #if
* src/uptime.c (print_uptime): Omit unnecessary "#if defined HAVE_GETLOADAVG || defined C_GETLOADAVG". This #if is always true, and removing it will help us simplify the gnulib getloadavg module.
This commit is contained in:
1 parent
0f56019db8
commit
43066fe2ca
1 file changed
-4
@@ -151,11 +151,7 @@ print_uptime (size_t n, const STRUCT_UTMP *this)
|
||||
printf (ngettext ("%lu user", "%lu users", entries),
|
||||
(unsigned long int) entries);
|
||||
|
||||
#if defined HAVE_GETLOADAVG || defined C_GETLOADAVG
|
||||
loads = getloadavg (avg, 3);
|
||||
#else
|
||||
loads = -1;
|
||||
#endif
|
||||
|
||||
if (loads == -1)
|
||||
putchar ('\n');
|
||||
|
||||
Reference in new issue
Block a user