summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-09 09:20:19 +0200
committerNeilBrown <neilb@suse.de>2012-07-09 09:20:19 +0200
commit95c5020544e245f133d9ef4cdd0931d20b51a0fe (patch)
tree25cde1eeb8ca9482fd0c1e09b95585e0a1857e18 /mdadm.c
parentChange Detail and misc_scan to take a struct context (diff)
downloadmdadm-95c5020544e245f133d9ef4cdd0931d20b51a0fe.tar.xz
mdadm-95c5020544e245f133d9ef4cdd0931d20b51a0fe.zip
Change Monitor to take a struct context
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdadm.c b/mdadm.c
index 1fb5738d..d57ab957 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1388,10 +1388,12 @@ int main(int argc, char *argv[])
else
c.delay = 60;
}
+ if (c.delay == 0)
+ c.delay = 60;
rv= Monitor(devlist, mailaddr, program,
- c.delay?c.delay:60, daemonise, c.scan, oneshot,
- dosyslog, c.test, pidfile, increments,
- spare_sharing, c.prefer);
+ &c, daemonise, oneshot,
+ dosyslog, pidfile, increments,
+ spare_sharing);
break;
case GROW: