summaryrefslogtreecommitdiffstats
path: root/Monitor.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-05-16 19:59:43 +0200
committerJes Sorensen <jsorensen@fb.com>2017-05-16 19:59:43 +0200
commitd7be7d87366a7f9b190bc4e41ea06f7c9984028e (patch)
tree48d43094e34376fa3dc7eab21546a10bc1119722 /Monitor.c
parentmdadm: Fixup a large number of bad formatting of logical operators (diff)
downloadmdadm-d7be7d87366a7f9b190bc4e41ea06f7c9984028e.tar.xz
mdadm-d7be7d87366a7f9b190bc4e41ea06f7c9984028e.zip
mdadm: Fixup more broken logical operator formatting
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Monitor.c')
-rw-r--r--Monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Monitor.c b/Monitor.c
index 0198a346..725f47db 100644
--- a/Monitor.c
+++ b/Monitor.c
@@ -530,7 +530,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat,
if (st->utime == array.utime && st->failed == sra->array.failed_disks &&
st->working == sra->array.working_disks &&
st->spare == sra->array.spare_disks &&
- (mse == NULL || (mse->percent == st->percent))) {
+ (mse == NULL || (mse->percent == st->percent))) {
if ((st->active < st->raid) && st->spare == 0)
retval = 1;
goto out;
@@ -672,7 +672,7 @@ static int add_new_arrays(struct mdstat_ent *mdstat, struct state **statelist,
char *name;
for (mse = mdstat; mse; mse = mse->next)
- if (mse->devnm[0] && (!mse->level || /* retrieve containers */
+ if (mse->devnm[0] && (!mse->level || /* retrieve containers */
(strcmp(mse->level, "raid0") != 0 &&
strcmp(mse->level, "linear") != 0))) {
struct state *st = xcalloc(1, sizeof *st);