summaryrefslogtreecommitdiff
path: root/benchmarks/bonnie/patches/patch-ac
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-09-10 14:12:38 +0000
committerjoerg <joerg@pkgsrc.org>2013-09-10 14:12:38 +0000
commitd16811883e52083423a88ccc513a6d9a701f49ea (patch)
tree4f793f7964b8528487aa526ea8cd18a6cefc9599 /benchmarks/bonnie/patches/patch-ac
parent0acd054339a67af3ea117134bce7c8684b8998a9 (diff)
downloadpkgsrc-d16811883e52083423a88ccc513a6d9a701f49ea.tar.gz
Fix operator precendence. Bump revision.
Diffstat (limited to 'benchmarks/bonnie/patches/patch-ac')
-rw-r--r--benchmarks/bonnie/patches/patch-ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/bonnie/patches/patch-ac b/benchmarks/bonnie/patches/patch-ac
index 0a4238a494b..769033f1bb9 100644
--- a/benchmarks/bonnie/patches/patch-ac
+++ b/benchmarks/bonnie/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.5 2011/09/12 07:17:14 dholland Exp $
+$NetBSD: patch-ac,v 1.6 2013/09/10 14:12:38 joerg Exp $
- ...
- cope with 64-bit off_t
@@ -89,7 +89,7 @@ $NetBSD: patch-ac,v 1.5 2011/09/12 07:17:14 dholland Exp $
+ if (size < ((off_t)1 << 32)) /* From FreeBSD */
+ seekto = random() % (size / Chunk);
+ else
-+ seekto = ((off_t)random() << 32 + random()) % (size / Chunk);
++ seekto = (((off_t)random() << 32) + random()) % (size / Chunk);
+ doseek(seekto, fd,
((lseek_count++ % UpdateSeek) == 0));
if (read(seek_control[0], seek_tickets, 1) != 1)