summaryrefslogtreecommitdiffstats
path: root/mdstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdstat.c')
-rw-r--r--mdstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdstat.c b/mdstat.c
index 335e1e5..a8f7ce7 100644
--- a/mdstat.c
+++ b/mdstat.c
@@ -161,7 +161,7 @@ struct mdstat_ent *mdstat_read(int hold, int start)
ent->dev = strdup(line);
ent->devnum = devnum;
-
+
for (w=dl_next(line); w!= line ; w=dl_next(w)) {
int l = strlen(w);
char *eq;
@@ -209,7 +209,7 @@ struct mdstat_ent *mdstat_read(int hold, int start)
strncmp(w, "resync", 4)==0) {
ent->resync = 1;
} else if (ent->percent == -1 &&
- w[0] >= '0' &&
+ w[0] >= '0' &&
w[0] <= '9' &&
w[l-1] == '%') {
ent->percent = atoi(w);