[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] uptime: fix output to better match procps
From: "gotrunks () gmail ! com" <gotrunks () gmail ! com>
Date: 2011-07-26 22:17:46
Message-ID: CAMYtjAqVR3nbaYH3d6_8RboL4W=BC5Zi=-iwND4RMP-LF1r7Zw () mail ! gmail ! com
[Download RAW message or body]
Hi,
patch attached.
Regards,
--
Pere
["0001-uptime-fix-output-to-better-match-procps.patch" (text/x-patch)]
From 5e8d0ad1a3c984f016d480f7f0e01e078fa5eb3d Mon Sep 17 00:00:00 2001
From: Pere Orga <gotrunks@gmail.com>
Date: Wed, 27 Jul 2011 00:04:51 +0200
Subject: [PATCH] uptime: fix output to better match procps
Signed-off-by: Pere Orga <gotrunks@gmail.com>
---
procps/uptime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/procps/uptime.c b/procps/uptime.c
index 7432362..cf866b3 100644
--- a/procps/uptime.c
+++ b/procps/uptime.c
@@ -22,7 +22,7 @@
//usage:
//usage:#define uptime_example_usage
//usage: "$ uptime\n"
-//usage: " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n"
+//usage: " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n"
#include "libbb.h"
#ifdef __linux__
@@ -60,9 +60,9 @@ int uptime_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
uphours = (upminutes / 60) % 24;
upminutes %= 60;
if (uphours)
- printf("%2d:%02d, ", uphours, upminutes);
+ printf("%2d:%02d, ", uphours, upminutes);
else
- printf("%d min, ", upminutes);
+ printf("%d min, ", upminutes);
printf("load average: %ld.%02ld, %ld.%02ld, %ld.%02ld\n",
LOAD_INT(info.loads[0]), LOAD_FRAC(info.loads[0]),
--
1.7.2.5
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic