aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-12-17 22:28:40 +0000
committerYang Tse <yangsita@gmail.com>2009-12-17 22:28:40 +0000
commit39cc424e8135f0de57edbb9ceba3d769ec30e2f7 (patch)
tree42e04930e99098fc1290e1501c317a662eeac107 /tests
parent4d0b0cae9e17151e089b9c2f4ea755e8c5937adf (diff)
Comment out hi resolution time logging to verify if this is what might
be contributing 90 additional seconds to the total time some autobuilds now need to make a full test-run.
Diffstat (limited to 'tests')
-rw-r--r--tests/ftpserver.pl26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 44f681ec9..9ecf69b5e 100644
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -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 @_;