fixes #2659

ceils nanosecond values to 1 ms to prevent no eviction case
yes maybe but currently there are places intentionally null is passed.