mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
tor-stress doesn't use gettimeofday anymore, and it's not portable,
so comment it out. svn:r2976
This commit is contained in:
parent
83e7043eb8
commit
6be64e7fbd
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
require 'sys/syscall.ph';
|
||||
#require 'sys/syscall.ph';
|
||||
$|=1;
|
||||
|
||||
$total = 1;
|
||||
@ -15,10 +15,10 @@ for($i=0;$i<$total;$i++) {
|
||||
while(<FD>) {
|
||||
$c += length($_);
|
||||
}
|
||||
$TIMEVAL_T = "LL";
|
||||
$now = pack($TIMEVAL_T, ());
|
||||
syscall(&SYS_gettimeofday, $now, 0) != -1 or die "gettimeofday: $!";
|
||||
@now = unpack($TIMEVAL_T, $now);
|
||||
# $TIMEVAL_T = "LL";
|
||||
# $now = pack($TIMEVAL_T, ());
|
||||
# syscall(&SYS_gettimeofday, $now, 0) != -1 or die "gettimeofday: $!";
|
||||
# @now = unpack($TIMEVAL_T, $now);
|
||||
print "Client $i exiting ($c chars).\n";
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user