We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AvgOverTime
func TestPulse2(t *testing.T) { t.Parallel() re := require.New(t) dur := 5 * time.Second aot := NewAvgOverTime(dur) aot.Add(1000, dur) re.Equal(float64(1000), aot.GetInstantaneous()) aot.Clear() aot.Add(1000, dur) re.Equal(float64(1000), aot.GetInstantaneous()) }
GetInstantaneous is lastest value
GetInstantaneous
GetInstantaneous is zero
pd-server -V
master
The text was updated successfully, but these errors were encountered:
pkg: fix bugs that the report interval equals the avg interval (#6302)
3779808
close #6301 Signed-off-by: bufferflies <1045931706@qq.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
bufferflies
Successfully merging a pull request may close this issue.
Bug Report
What did you do?
What did you expect to see?
GetInstantaneous
is lastest valueWhat did you see instead?
GetInstantaneous
is zeroWhat version of PD are you using (
pd-server -V
)?master
The text was updated successfully, but these errors were encountered: