summaryrefslogtreecommitdiffstats
path: root/rose/rsmemsiz.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 00:57:38 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:11:30 +0200
commit1245fbd2a8d60bab7b16b8a1d3c0122fee72f53f (patch)
tree6dcf938b1472a9b5cac35648ffb0f3d185c39590 /rose/rsmemsiz.c
parent0b4425760be1f92a1f25daeb5d3dc91814a98622 (diff)
Nuke trailing whitespace.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'rose/rsmemsiz.c')
-rw-r--r--rose/rsmemsiz.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rose/rsmemsiz.c b/rose/rsmemsiz.c
index c71737c..bdddb45 100644
--- a/rose/rsmemsiz.c
+++ b/rose/rsmemsiz.c
@@ -54,7 +54,7 @@ static char buf[300];
int uptime(double *uptime_secs, double *idle_secs) {
double up=0, idle=0;
-
+
FILE_TO_BUF(UPTIME_FILE)
if (sscanf(buf, "%lf %lf", &up, &idle) < 2) {
fprintf(stdout, "ERROR: Bad data in %s\r", UPTIME_FILE);
@@ -67,7 +67,7 @@ int uptime(double *uptime_secs, double *idle_secs) {
int loadavg(double *av1, double *av5, double *av15) {
double avg_1=0, avg_5=0, avg_15=0;
-
+
FILE_TO_BUF(LOADAVG_FILE)
if (sscanf(buf, "%lf %lf %lf", &avg_1, &avg_5, &avg_15) < 3) {
fprintf(stdout, "ERROR: Bad data in %s\r", LOADAVG_FILE);
@@ -83,7 +83,7 @@ int loadavg(double *av1, double *av5, double *av15) {
[ <label> ... ] # header lines
[ <label> ] <num> [ <num> ... ] # table rows
[ repeats of above line ]
-
+
Any lines with fewer <num>s than <label>s get trailing <num>s set to zero.
The return value is a NULL terminated unsigned** which is the table of
numbers without labels. Convenient enumeration constants for the major and
@@ -100,7 +100,7 @@ unsigned** meminfo(void) {
static unsigned num[MAX_ROW * MAX_COL]; /* number storage */
char *p;
int i, j, k, l;
-
+
FILE_TO_BUF(MEMINFO_FILE)
if (!row[0]) /* init ptrs 1st time through */
for (i=0; i < MAX_ROW; i++) /* std column major order: */
@@ -124,7 +124,7 @@ unsigned** meminfo(void) {
/*
- * by Heikki Hannikainen <oh7lzb@sral.fi>
+ * by Heikki Hannikainen <oh7lzb@sral.fi>
* The following was mostly learnt from the procps package and the
* gnu sh-utils (mainly uname).
*/