diff options
author | matthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2007-08-21 21:29:23 +0400 |
---|---|---|
committer | matthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2007-08-21 21:29:23 +0400 |
commit | 7765dfe0c8e71eabaa079b3d94eaf800bda88390 (patch) | |
tree | e3bdb872ecfee78c4f2fad38a1385e5903806789 /modules/LogStats | |
parent | f9275a2a990f29418605e7ee4f3e4b27e9d40a82 (diff) |
memory profiling, small enhancements, api specifications
Diffstat (limited to 'modules/LogStats')
-rw-r--r-- | modules/LogStats/Generator.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/LogStats/Generator.php b/modules/LogStats/Generator.php index e2ffb7e175..b5d390e860 100644 --- a/modules/LogStats/Generator.php +++ b/modules/LogStats/Generator.php @@ -290,7 +290,7 @@ class Piwik_LogStats_Generator { if(rand(0,2)==1) { - $this->setCurrentRequest( 'action_name' , $this->getRandomString(3,3)); + $this->setCurrentRequest( 'action_name' , $this->getRandomString(1,1)); } } } @@ -305,10 +305,10 @@ class Piwik_LogStats_Generator { $url = $host; - $deep = mt_rand(0,2); + $deep = mt_rand(0,1); for($i=0;$i<$deep;$i++) { - $name = $this->getRandomString(1,2,'alnum'); + $name = $this->getRandomString(1,1,'alnum'); $url .= '/'.$name; } @@ -321,14 +321,14 @@ class Piwik_LogStats_Generator $len = mt_rand($minLength, $maxLength); // Register the lower case alphabet array - $alpha = array('a', 'b', 'c', 'd', 'e', 'f', 'g'); + $alpha = array('a', 'd', 'e', 'f', 'g'); // Register the upper case alphabet array $ALPHA = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'); // Register the numeric array - $num = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '0'); + $num = array('1', '2', '3', '8', '9', '0'); // Register the strange array $strange = array('/', '?', '!','"','£','$','%','^','&','*','(',')',' '); |