fix lastPoint and num points check
fix lastPoint and num points check

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