[metrics]fix lastRate & meanRate long/double problem