projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b13b12d
)
In UNICOS division is really lossy, better use
author
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 5 Sep 2001 23:26:23 +0000
(23:26 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 5 Sep 2001 23:26:23 +0000
(23:26 +0000)
a tolerance test.
p4raw-id: //depot/perl@11901
ext/Time/HiRes/HiRes.t
patch
|
blob
|
history
diff --git
a/ext/Time/HiRes/HiRes.t
b/ext/Time/HiRes/HiRes.t
index
be462e6
..
feeb5cf
100644
(file)
--- a/
ext/Time/HiRes/HiRes.t
+++ b/
ext/Time/HiRes/HiRes.t
@@
-86,7
+86,7
@@
else {
# Two-arg tv_interval() is always available.
{
my $f = tv_interval [5, 100_000], [10, 500_000];
- ok 9,
$f == 5.4
, $f;
+ ok 9,
abs($f - 5.4) < 0.001
, $f;
}
if (!$have_gettimeofday) {