[or-cvs] tor-stress doesn"t use gettimeofday anymore, and it"s not p...
Roger Dingledine
arma at seul.org
Wed Nov 24 06:45:01 UTC 2004
Update of /home2/or/cvsroot/tor/contrib
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/contrib
Modified Files:
tor-stress
Log Message:
tor-stress doesn't use gettimeofday anymore, and it's not portable,
so comment it out.
Index: tor-stress
===================================================================
RCS file: /home2/or/cvsroot/tor/contrib/tor-stress,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tor-stress 22 Nov 2004 00:10:35 -0000 1.2
+++ tor-stress 24 Nov 2004 06:44:58 -0000 1.3
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-require 'sys/syscall.ph';
+#require 'sys/syscall.ph';
$|=1;
$total = 1;
@@ -15,10 +15,10 @@
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);
}
More information about the tor-commits
mailing list