diff options
author | jtb <jtb> | 2003-05-11 00:06:13 +0000 |
---|---|---|
committer | jtb <jtb> | 2003-05-11 00:06:13 +0000 |
commit | 4f7a2c4c6cd4933332212d681c84dbd9f7835d61 (patch) | |
tree | c55167fb76bece53e914584a2bcfb2ba09e7739e | |
parent | 27673f5b637ce8513b9cc1d5f3827c9235168145 (diff) | |
download | pkgsrc-4f7a2c4c6cd4933332212d681c84dbd9f7835d61.tar.gz |
Fix the timer routine to correctly return the time in seconds.
Bump PKGREVISION.
-rw-r--r-- | math/euler/Makefile | 4 | ||||
-rw-r--r-- | math/euler/distinfo | 4 | ||||
-rw-r--r-- | math/euler/patches/patch-aa | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/math/euler/Makefile b/math/euler/Makefile index 9e304efd56f..24155511d4f 100644 --- a/math/euler/Makefile +++ b/math/euler/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2003/05/02 11:55:43 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2003/05/11 00:06:13 jtb Exp $ DISTNAME= euler-1.60.6 -PKGREVISION= 1 +PKGREVISION= 2 WRKSRC= ${WRKDIR}/euler-1.60/source CATEGORIES= math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=euler/} diff --git a/math/euler/distinfo b/math/euler/distinfo index c1c78c4e446..7d801bcffb8 100644 --- a/math/euler/distinfo +++ b/math/euler/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.5 2003/04/29 22:22:44 jtb Exp $ +$NetBSD: distinfo,v 1.6 2003/05/11 00:06:13 jtb Exp $ SHA1 (euler-1.60.6.tar.gz) = 30e9fe077b8c4b2cb61f72b618fcbe7054c67746 Size (euler-1.60.6.tar.gz) = 769602 bytes -SHA1 (patch-aa) = 98b8aa3441d5fa0ab822019ea9dc0446625e7072 +SHA1 (patch-aa) = 30997ef15312f470b91bd49c2e6954fa9aa74918 SHA1 (patch-ab) = 1705383882d30ab0d1574a9d6328ed9d843f089e SHA1 (patch-ac) = 578b456efe37219d4edbb5b7a27f671011b3c26c 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 } + |