summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2013-06-25 16:10:04 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2013-06-25 16:10:04 -0700
commit3866433fe273eded1e601b3274028684c3e77919 (patch)
tree460ee47bbbdc340c9e21415bd64b2c98f0985ad4
parent34bffb734ba44ca34094a7cb8fa4845449b3e246 (diff)
downloadrabbitmq-c-3866433fe273eded1e601b3274028684c3e77919.tar.gz
FIX: force correct timer precision on Mac OS X
-rw-r--r--librabbitmq/amqp_timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/librabbitmq/amqp_timer.c b/librabbitmq/amqp_timer.c
index 026661a..7066358 100644
--- a/librabbitmq/amqp_timer.c
+++ b/librabbitmq/amqp_timer.c
@@ -75,7 +75,8 @@ amqp_get_monotonic_timestamp(void)
}
}
- timestamp = timestamp * s_timebase.numer / s_timebase.denom;
+ timestamp *= (uint64_t)s_timebase.numer;
+ timestamp /= (uint64_t)s_timebase.denom;
return timestamp;
}