try to fix the int max bug again

This commit is contained in:
Azareal 2020-02-28 11:56:06 +10:00
parent 4ea5e91f2d
commit 671134b1f3
1 changed files with 3 additions and 3 deletions

View File

@ -20,15 +20,15 @@ type PerfCounterBucket struct {
// TODO: Track perf on a per route basis
type DefaultPerfCounter struct {
buckets []PerfCounterBucket
buckets []*PerfCounterBucket
insert *sql.Stmt
}
func NewDefaultPerfCounter(acc *qgen.Accumulator) (*DefaultPerfCounter, error) {
co := &DefaultPerfCounter{
buckets: []PerfCounterBucket{
PerfCounterBucket{
buckets: []*PerfCounterBucket{
&PerfCounterBucket{
low: &MutexCounter64Bucket{counter: math.MaxInt64},
high: &MutexCounter64Bucket{counter: 0},
avg: &MutexCounter64Bucket{counter: 0},