Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...
|
[SSI] demo/demo-proclb demo-proclb,1.4,1.5: msg#00086
|
Subject: |
[SSI] demo/demo-proclb demo-proclb,1.4,1.5 |
Update of /cvsroot/ssic-linux/demo/demo-proclb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13111
Modified Files:
demo-proclb
Log Message:
Improved accounting for total number of records processed
Index: demo-proclb
===================================================================
RCS file: /cvsroot/ssic-linux/demo/demo-proclb/demo-proclb,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- demo-proclb 30 Jul 2003 01:44:38 -0000 1.4
+++ demo-proclb 17 Jul 2004 01:29:17 -0000 1.5
@@ -21,6 +21,7 @@
my $pgrp = getpgrp(0);
my $msgctr = 0;
+my $total_count = 0;
my $clock = 0;
my $recs_per_second;
my $max_hashmarks = 50;
@@ -167,6 +168,7 @@
unless $record == $child->[0];
$msgctr++;
+ $total_count++;
$child->[0]++;
if ($child->[0] == $child->[1]) {
push @dead_children, $pid;
@@ -190,7 +192,6 @@
my $total_records = $records_per_child * $child_count;
my $total_size = $record_size * $total_records;
- my $record_count = 0;
die "Non-existent data file: $datafile\n" unless -r $datafile;
my $statinfo = stat $datafile;
@@ -257,12 +258,11 @@
print "|$max_recs_per_sec: ";
printf "%4d recs/sec\n", $recs_per_second;
- $record_count += $recs_per_second;
$recs_per_second = 0;
unless (keys %children) {
print "Total records processed: " .
- "$record_count\n";
+ "$total_count\n";
exit;
}
}
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
|
| |