]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/createsim.php
make PiwikAnalytics work a little nicer
[quix0rs-gnu-social.git] / scripts / createsim.php
index eb97a624dbac10c9e0075050de4973ca8cb13963..71ed3bf7227ff2feb5ce4427c183c07be44a03f4 100644 (file)
@@ -1,8 +1,8 @@
 #!/usr/bin/env php
 <?php
 /*
- * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, 2009, Control Yourself, Inc.
+ * StatusNet - the distributed open-source microblogging tool
+ * Copyright (C) 2008, 2009, StatusNet, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -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';