]> granicus.if.org Git - curl/commitdiff
Comment out hi resolution time logging to verify if this is what might
authorYang Tse <yangsita@gmail.com>
Thu, 17 Dec 2009 22:28:40 +0000 (22:28 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 17 Dec 2009 22:28:40 +0000 (22:28 +0000)
be contributing 90 additional seconds to the total time some autobuilds
now need to make a full test-run.

tests/ftpserver.pl

index 44f681ec93a22d300f7aee9c3317542ecfef4e71..9ecf69b5ef39dcd83c010ba47773fa976dfd630f 100644 (file)
@@ -43,11 +43,11 @@ use IPC::Open2;
 require "getpart.pm";
 require "ftp.pm";
 
-BEGIN {
-    if($] > 5.006) {
-        use Time::HiRes qw( gettimeofday );
-    }
-}
+#BEGIN {
+#    if($] > 5.006) {
+#        use Time::HiRes qw( gettimeofday );
+#    }
+#}
 
 my $ftpdnum="";
 
@@ -71,18 +71,18 @@ sub getlogfilename {
 #
 sub logmsg {
     my $now;
-    if($] > 5.006) {
-        my ($seconds, $usec) = gettimeofday();
-        my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
-            localtime($seconds);
-        $now = sprintf("%02d:%02d:%02d.%06d ", $hour, $min, $sec, $usec);
-    }
-    else {
+#   if($] > 5.006) {
+#       my ($seconds, $usec) = gettimeofday();
+#       my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
+#           localtime($seconds);
+#       $now = sprintf("%02d:%02d:%02d.%06d ", $hour, $min, $sec, $usec);
+#   }
+#   else {
         my $seconds = time();
         my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
             localtime($seconds);
         $now = sprintf("%02d:%02d:%02d ", $hour, $min, $sec);
-    }
+#   }
     if(open(LOGFILEFH, ">>$logfilename")) {
         print LOGFILEFH $now;
         print LOGFILEFH @_;