Skip to content
Browse files

get idle wait from config file

  • Loading branch information...
1 parent 996b054 commit 380d602b85454a18b6a394550e199a1b33f6b995 @tomato42 committed Aug 2, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lvmtsd.c
View
8 lvmtsd.c
@@ -151,6 +151,12 @@ get_pvwait(struct program_params *pp, const char *lv_name)
return cfg_getint(cfg_gettsec(pp->cfg, "volume", lv_name), "pvmoveWait");
}
+static int
+get_check_wait(struct program_params *pp, const char *lv_name)
+{
+ return cfg_getint(cfg_gettsec(pp->cfg, "volume", lv_name), "checkWait");
+}
+
/** controlling daemon main loop */
static int
main_loop(struct program_params *pp)
@@ -336,7 +342,7 @@ main_loop(struct program_params *pp)
// wait 10 minutes
if (!stop)
- sleep(10*60);
+ sleep(get_check_wait(pp, lv_name));
cont:
free_extent_stats(es);

0 comments on commit 380d602

Please sign in to comment.
Something went wrong with that request. Please try again.