backend: fix off-by-one in nsec calculation