Fix interval detection for slices.

Without this fix, sometimes graphite will try to display data from future.

This patch makes it less accurate, but more sane.