Fix microsecond/second mixup bug

This fixes a bug where seconds were used to compare with microseconds.
This would cause deleted buckets to be pruned two orders of magnitude
before they were supposed to.