tor-stress doesn't use gettimeofday anymore, and it's not portable,

so comment it out.


svn:r2976
This commit is contained in:
Roger Dingledine 2004-11-24 06:44:58 +00:00
parent 83e7043eb8
commit 6be64e7fbd

View File

@ -1,6 +1,6 @@
#!/usr/bin/perl #!/usr/bin/perl
require 'sys/syscall.ph'; #require 'sys/syscall.ph';
$|=1; $|=1;
$total = 1; $total = 1;
@ -15,10 +15,10 @@ for($i=0;$i<$total;$i++) {
while(<FD>) { while(<FD>) {
$c += length($_); $c += length($_);
} }
$TIMEVAL_T = "LL"; # $TIMEVAL_T = "LL";
$now = pack($TIMEVAL_T, ()); # $now = pack($TIMEVAL_T, ());
syscall(&SYS_gettimeofday, $now, 0) != -1 or die "gettimeofday: $!"; # syscall(&SYS_gettimeofday, $now, 0) != -1 or die "gettimeofday: $!";
@now = unpack($TIMEVAL_T, $now); # @now = unpack($TIMEVAL_T, $now);
print "Client $i exiting ($c chars).\n"; print "Client $i exiting ($c chars).\n";
exit(0); exit(0);
} }