summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-27 13:26:53 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-27 13:26:53 -0400
commitff7f6ea583ee835ee81ec8b00d20a9f72821411f (patch)
tree0afcbda17762c2611edceee19e767aa23377c83d /scripts
parent037c35152efc359d0947bff398a56af921afb076 (diff)
want a minimum of 10 subs per user
Diffstat (limited to 'scripts')
-rw-r--r--scripts/createsim.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/createsim.php b/scripts/createsim.php
index eb97a624d..71827ba5b 100644
--- a/scripts/createsim.php
+++ b/scripts/createsim.php
@@ -135,7 +135,7 @@ function main($usercount, $noticeavg, $subsavg, $tagmax)
$usercount = (have_option('u', 'users')) ? get_option_value('u', 'users') : 100;
$noticeavg = (have_option('n', 'notices')) ? get_option_value('n', 'notices') : 100;
-$subsavg = (have_option('b', 'subscriptions')) ? get_option_value('b', 'subscriptions') : min($usercount/20, 10);
+$subsavg = (have_option('b', 'subscriptions')) ? get_option_value('b', 'subscriptions') : max($usercount/20, 10);
$tagmax = (have_option('t', 'tags')) ? get_option_value('t', 'tags') : 10000;
$userprefix = (have_option('x', 'prefix')) ? get_option_value('x', 'prefix') : 'testuser';