cleanup getIntervalsSet and related code
cleanup getIntervalsSet and related code

raintank/metrictank,replay/metrictank,raintank/metrictank,replay/metrictank,replay/metrictank,raintank/raintank-metric,raintank/raintank-metric,replay/metrictank,raintank/metrictank,raintank/raintank-metric,raintank/metrictank