diff options
Diffstat (limited to 'src/uptime.c')
-rw-r--r-- | src/uptime.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/uptime.c b/src/uptime.c index 49161c9..22b8356 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -21,18 +21,13 @@ void run_uptime_command(const char *command) { pclose(p); } -#ifndef __NetBSD__ void display_days() { run_uptime_command("uptime | awk '{print $3}' && echo \" days\""); } -#endif void display_time() { -#if defined(__NetBSD__) - run_uptime_command("uptime | awk '{print $3}' | sed 's/,//' | " - "sed 's/:/ hours, /' && echo \" mins\""); -#else + /* run_uptime_command("uptime | awk '{print $3}' | sed 's/,//' | " */ + /* "sed 's/:/ hours, /' && echo \" mins\""); */ run_uptime_command("uptime | awk '{print $5}' | sed 's/,//' | " "sed 's/:/ hours, /' && echo \" mins\""); -#endif } |