diff options
author | Josef 'Jeff' Sipek <josef.sipek@nexenta.com> | 2014-04-29 13:05:25 -0400 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2014-04-29 19:58:01 -0400 |
commit | 19449258028e6813f0b7a606b554b2fa37a390ec (patch) | |
tree | efea614096aaea148d4996ef59fd97c6dbf0d687 /usr/src/lib/libinetutil | |
parent | cb3e7fb42f8104f779abb6856ccf6e5b8e6419d8 (diff) | |
download | illumos-joyent-19449258028e6813f0b7a606b554b2fa37a390ec.tar.gz |
4823 don't open-code NSEC2MSEC and MSEC2NSEC
Reviewed by: Richard Elling <richard.elling@gmail.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libinetutil')
-rw-r--r-- | usr/src/lib/libinetutil/common/tq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libinetutil/common/tq.c b/usr/src/lib/libinetutil/common/tq.c index e809b3289d..8ceb305406 100644 --- a/usr/src/lib/libinetutil/common/tq.c +++ b/usr/src/lib/libinetutil/common/tq.c @@ -95,7 +95,7 @@ insert_timer(iu_tq_t *tq, iu_timer_node_t *node, uint64_t msec) * is the last item on the list, which are very different cases). */ - node->iutn_abs_timeout = gethrtime() + (msec * (NANOSEC / MILLISEC)); + node->iutn_abs_timeout = gethrtime() + MSEC2NSEC(msec); if (tq->iutq_head != NULL && tq->iutq_head->iutn_abs_timeout < node->iutn_abs_timeout) |