[pLog-svn] r3420 - plog/trunk/tools
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun May 14 20:28:31 GMT 2006
Author: oscar
Date: 2006-05-14 20:28:31 +0000 (Sun, 14 May 2006)
New Revision: 3420
Modified:
plog/trunk/tools/genloadtestdata.php
Log:
the percentage of GETs and POSTs should now be more approxiamte to what we defined as GET_RATE and POST_RATE. Well, not quite but at least closer :)
Modified: plog/trunk/tools/genloadtestdata.php
===================================================================
--- plog/trunk/tools/genloadtestdata.php 2006-05-14 20:18:46 UTC (rev 3419)
+++ plog/trunk/tools/genloadtestdata.php 2006-05-14 20:28:31 UTC (rev 3420)
@@ -3,7 +3,7 @@
/**
* number of requests to perform
*/
- define( "NUM_REQUESTS", 100 );
+ define( "NUM_REQUESTS", 10 );
/**
* base url for these tests
@@ -50,8 +50,8 @@
$articleId = $postIds[$blogId][rand(0,count($postIds[$blogId])-1)];
// find out whether this is a POST or a GET request
- $reqType = rand(1,2);
- if( $reqType == 1 ) {
+ $reqType = rand(1,100);
+ if( $reqType <= GET_RATE ) {
$getType = rand(1,2);
if( $getType == 1 ) {
// generate a link to the blog
More information about the pLog-svn
mailing list