Metrics bug fix
Merge pull request #147 from huafengw/metrics

Fix Metrics bug(reporting metrics as zero) when sampleRate is set to value bigger than 1.