Fix sampling bug.

This commit is contained in:
wusheng 2017-06-04 20:23:14 +08:00
parent 8928716f70
commit 4a7648dd9d
1 changed files with 2 additions and 1 deletions

View File

@ -40,9 +40,10 @@ public class SamplingService implements BootService {
if (on) {
if (rollingSeed % Config.Agent.SAMPLING_CYCLE != 0) {
segment.setSampled(false);
rollingSeed++;
}else{
this.rollingSeed = 1;
}
rollingSeed++;
}
}