summaryrefslogtreecommitdiff
path: root/math/euler/patches
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2003-05-11 00:06:13 +0000
committerjtb <jtb@pkgsrc.org>2003-05-11 00:06:13 +0000
commitb9b661f808be08f99e4ee6ed5a133f25cca8e08c (patch)
treec55167fb76bece53e914584a2bcfb2ba09e7739e /math/euler/patches
parent44f517fc17096de0ba395f7168ffd6f2a7b234ad (diff)
downloadpkgsrc-b9b661f808be08f99e4ee6ed5a133f25cca8e08c.tar.gz
Fix the timer routine to correctly return the time in seconds.
Bump PKGREVISION.
Diffstat (limited to 'math/euler/patches')
-rw-r--r--math/euler/patches/patch-aa8
1 files changed, 4 insertions, 4 deletions
diff --git a/math/euler/patches/patch-aa b/math/euler/patches/patch-aa
index ddfeb625a2e..153dd9fca42 100644
--- a/math/euler/patches/patch-aa
+++ b/math/euler/patches/patch-aa
@@ -1,14 +1,14 @@
-$NetBSD: patch-aa,v 1.4 2003/04/29 22:22:45 jtb Exp $
+$NetBSD: patch-aa,v 1.5 2003/05/11 00:06:14 jtb Exp $
--- main.c.orig
+++ main.c
-@@ -429,7 +429,9 @@
+@@ -429,7 +429,8 @@
gettimer(TIMEOFDAY,&t);
return (t.tv_sec+t.tv_nsec/1000000000.0);
#else
- return ((double)(times(NULL)))/CLK_TCK;
+ struct tms t;
-+ times(&t);
-+ return (double)(t.tms_utime+t.tms_stime)/CLK_TCK;
++ return ((double)(times(&t)))/CLK_TCK;
#endif
}
+