[svn:modperl-modules] rev 177 - in Apache-Scoreboard-1.0/trunk: . t/lib/MyTest
[email protected] 11 Mar 2005 23:45:41 -0000
| Newsgroups | perl.modperl.modules.svn |
|---|---|
| Message-ID | <[email protected]> |
Author: stas
Date: Fri Mar 11 15:45:41 2005
New Revision: 177
Modified:
Apache-Scoreboard-1.0/trunk/Changes
Apache-Scoreboard-1.0/trunk/Scoreboard.xs
Apache-Scoreboard-1.0/trunk/t/lib/MyTest/Common.pm
Log:
added a new method $image->server_limit, which is the same as
HARD_SERVER_LIMIT added for future compat with Apache::Scoreboard 2.x.
Modified: Apache-Scoreboard-1.0/trunk/Changes
==============================================================================
--- Apache-Scoreboard-1.0/trunk/Changes (original)
+++ Apache-Scoreboard-1.0/trunk/Changes Fri Mar 11 15:45:41 2005
@@ -1,5 +1,7 @@
0.15 - dev
+added a new method $image->server_limit, which is the same as
+HARD_SERVER_LIMIT added for future compat with Apache::Scoreboard 2.x.
0.14 - Sun Feb 27 22:33:07 EST 2005
Modified: Apache-Scoreboard-1.0/trunk/Scoreboard.xs
==============================================================================
--- Apache-Scoreboard-1.0/trunk/Scoreboard.xs (original)
+++ Apache-Scoreboard-1.0/trunk/Scoreboard.xs Fri Mar 11 15:45:41 2005
@@ -22,6 +22,8 @@
typedef scoreboard * Apache__Scoreboard;
+#define server_limit(image) HARD_SERVER_LIMIT
+
#define server_score_status(s) s->record.status
#define server_score_access_count(s) s->record.access_count
#define server_score_bytes_served(s) s->record.bytes_served
@@ -162,6 +164,10 @@
OUTPUT:
RETVAL
+int
+server_limit(image)
+ Apache::Scoreboard image
+
Apache::ServerScore
servers(image, idx=0)
Apache::Scoreboard image
Modified: Apache-Scoreboard-1.0/trunk/t/lib/MyTest/Common.pm
==============================================================================
--- Apache-Scoreboard-1.0/trunk/t/lib/MyTest/Common.pm (original)
+++ Apache-Scoreboard-1.0/trunk/t/lib/MyTest/Common.pm Fri Mar 11 15:45:41 2005
@@ -75,7 +75,9 @@
ref($image) eq 'Apache::Scoreboard' &&
$image->pids &&
$image->servers(0) &&
- $image->parent(0)->pid;
+ $image->parent(0)->pid &&
+ # same as HARD_SERVER_LIMIT added for future compat with 2.x
+ $image->server_limit;
return $status;
}