]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
tor-stress doesn't use gettimeofday anymore, and it's not portable,
authorRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 06:44:58 +0000 (06:44 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 06:44:58 +0000 (06:44 +0000)
so comment it out.

svn:r2976

contrib/tor-stress

index e59a968af4d4f4abe357bbd7135ee60ef63ff79a..a0c88c2fdd74b8c333d7d2c781abf937232005e3 100755 (executable)
@@ -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);
   }