backend: fix off-by-one in nsec calculation
authorJens Axboe <axboe@fb.com>
Mon, 15 Dec 2014 20:45:53 +0000 (13:45 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 15 Dec 2014 20:45:53 +0000 (13:45 -0700)
commit823952afda151688e8b509be4f4e09b4ac1efd75
tree2e607ca47fc8afa26871cf379534875709744eaf
parent967d1b631d2a69df41feca144632256e37cc5aec
backend: fix off-by-one in nsec calculation

If it's equal to 10^9 we need to bump seconds and subtract 10^9
from nsec, not only if it's larger than.

Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c