Change 33266 by [EMAIL PROTECTED] on 2008/02/10 05:05:28

        Upgrade to Time-HiRes-1.9712

Affected files ...

... //depot/perl/ext/Time/HiRes/HiRes.pm#79 edit
... //depot/perl/ext/Time/HiRes/Makefile.PL#48 edit
... //depot/perl/ext/Time/HiRes/t/HiRes.t#33 edit

Differences ...

==== //depot/perl/ext/Time/HiRes/HiRes.pm#79 (text) ====
Index: perl/ext/Time/HiRes/HiRes.pm
--- perl/ext/Time/HiRes/HiRes.pm#78~32557~      2007-11-29 21:05:15.000000000 
-0800
+++ perl/ext/Time/HiRes/HiRes.pm        2008-02-09 21:05:28.000000000 -0800
@@ -23,7 +23,7 @@
                 stat
                );
        
-$VERSION = '1.9711';
+$VERSION = '1.9712';
 $XS_VERSION = $VERSION;
 $VERSION = eval $VERSION;
 

==== //depot/perl/ext/Time/HiRes/Makefile.PL#48 (text) ====
Index: perl/ext/Time/HiRes/Makefile.PL
--- perl/ext/Time/HiRes/Makefile.PL#47~33259~   2008-02-08 11:11:19.000000000 
-0800
+++ perl/ext/Time/HiRes/Makefile.PL     2008-02-09 21:05:28.000000000 -0800
@@ -851,19 +851,20 @@
        print  <<EOM;
 Now you may issue '$make'.  Do not forget also '$make test'.
 EOM
-       if ((exists $ENV{LC_ALL}   && $ENV{LC_ALL}   =~ /utf-?8/i) ||
-           (exists $ENV{LC_CTYPE} && $ENV{LC_CTYPE} =~ /utf-?8/i) ||
-           (exists $ENV{LANG}     && $ENV{LANG}     =~ /utf-?8/i)) {
+       if ($] == 5.008 &&
+          ((exists $ENV{LC_ALL}   && $ENV{LC_ALL}   =~ /utf-?8/i) ||
+           (exists $ENV{LC_CTYPE} && $ENV{LC_CTYPE} =~ /utf-?8/i) ||
+           (exists $ENV{LANG}     && $ENV{LANG}     =~ /utf-?8/i))) {
             print <<EOM;
 
 NOTE: if you get an error like this (the Makefile line number may vary):
 Makefile:91: *** missing separator
 then set the environment variable LC_ALL to "C" and retry
 from scratch (re-run perl "Makefile.PL").
-(And consider upgrading your Perl.)
+(And consider upgrading your Perl to, say, at least Perl 5.8.8.)
 (You got this message because you seem to have
  an UTF-8 locale active in your shell environment, this used
- to cause broken Makefiles to be created from Makefile.PLs.)
+ to cause broken Makefiles to be created from Makefile.PLs)
 EOM
         }
     }

==== //depot/perl/ext/Time/HiRes/t/HiRes.t#33 (text) ====
Index: perl/ext/Time/HiRes/t/HiRes.t
--- perl/ext/Time/HiRes/t/HiRes.t#32~32557~     2007-11-29 21:05:15.000000000 
-0800
+++ perl/ext/Time/HiRes/t/HiRes.t       2008-02-09 21:05:28.000000000 -0800
@@ -271,19 +271,6 @@
        # Perl's deferred signals may be too wimpy to break through
        # a restartable select(), so use POSIX::sigaction if available.
 
-       sub tick {
-           $i--;
-           my $ival = Time::HiRes::tv_interval ($r);
-           print "# Tick! $i $ival\n";
-           my $exp = 0.3 * (5 - $i);
-           # This test is more sensitive, so impose a softer limit.
-           if (abs($ival/$exp - 1) > 4*$limit) {
-               my $ratio = abs($ival/$exp);
-               $not = "tick: $exp sleep took $ival ratio $ratio";
-               $i = 0;
-           }
-       }
-
        POSIX::sigaction(&POSIX::SIGALRM,
                         POSIX::SigAction->new("tick"),
                         $oldaction)
@@ -315,7 +302,7 @@
            }
            my $exp = 0.3 * (5 - $i);
            # This test is more sensitive, so impose a softer limit.
-           if (abs($ival/$exp - 1) > 3*$limit) {
+           if (abs($ival/$exp - 1) > 4*$limit) {
                my $ratio = abs($ival/$exp);
                $not = "while: $exp sleep took $ival ratio $ratio";
                last;
@@ -324,6 +311,19 @@
        }
     }
 
+    sub tick {
+       $i--;
+       my $ival = Time::HiRes::tv_interval ($r);
+       print "# Tick! $i $ival\n";
+       my $exp = 0.3 * (5 - $i);
+       # This test is more sensitive, so impose a softer limit.
+       if (abs($ival/$exp - 1) > 4*$limit) {
+           my $ratio = abs($ival/$exp);
+           $not = "tick: $exp sleep took $ival ratio $ratio";
+           $i = 0;
+       }
+    }
+
     if ($use_sigaction) {
        POSIX::sigaction(&POSIX::SIGALRM, $oldaction);
     } else {
End of Patch.

Reply via email to