Index: trunk/ippScripts/scripts/minidvodb_createdb.pl
===================================================================
--- trunk/ippScripts/scripts/minidvodb_createdb.pl	(revision 33030)
+++ trunk/ippScripts/scripts/minidvodb_createdb.pl	(revision 38584)
@@ -39,5 +39,5 @@
 }
 
-my (  $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_group, $camera,  $verbose, $no_update,
+my (  $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_nums, $minidvodb_group, $camera,  $verbose, $no_update,
      $no_op, $redirect, $save_temps);
 GetOptions(
@@ -49,4 +49,5 @@
     'minidvodb|w=s'     => \$minidvodb, # output miniDVODB
     'interval|w=s'      => \$minidvodb_interval, #interval between creation of minidvodbs (default = 1day)
+    'num|w=s'      => \$minidvodb_nums, #interval between creation of minidvodbs (default = 500 addRuns)
     'verbose'           => \$verbose,   # Print to stdout
     'no-update'         => \$no_update, # Update the database?
@@ -111,4 +112,7 @@
     $minidvodb_interval = 1;
 }
+if (!defined $minidvodb_nums) {
+    $minidvodb_nums = 500
+}
 
 
@@ -207,5 +211,5 @@
 
 
-    if ($addRun_count > 500) {
+    if ($addRun_count > $minidvodb_nums) {
         #it's too big, create_new
         $create_new = 1;
