try to fix the int max bug again
This commit is contained in:
parent
4ea5e91f2d
commit
671134b1f3
|
@ -20,15 +20,15 @@ type PerfCounterBucket struct {
|
||||||
|
|
||||||
// TODO: Track perf on a per route basis
|
// TODO: Track perf on a per route basis
|
||||||
type DefaultPerfCounter struct {
|
type DefaultPerfCounter struct {
|
||||||
buckets []PerfCounterBucket
|
buckets []*PerfCounterBucket
|
||||||
|
|
||||||
insert *sql.Stmt
|
insert *sql.Stmt
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDefaultPerfCounter(acc *qgen.Accumulator) (*DefaultPerfCounter, error) {
|
func NewDefaultPerfCounter(acc *qgen.Accumulator) (*DefaultPerfCounter, error) {
|
||||||
co := &DefaultPerfCounter{
|
co := &DefaultPerfCounter{
|
||||||
buckets: []PerfCounterBucket{
|
buckets: []*PerfCounterBucket{
|
||||||
PerfCounterBucket{
|
&PerfCounterBucket{
|
||||||
low: &MutexCounter64Bucket{counter: math.MaxInt64},
|
low: &MutexCounter64Bucket{counter: math.MaxInt64},
|
||||||
high: &MutexCounter64Bucket{counter: 0},
|
high: &MutexCounter64Bucket{counter: 0},
|
||||||
avg: &MutexCounter64Bucket{counter: 0},
|
avg: &MutexCounter64Bucket{counter: 0},
|
||||||
|
|
Loading…
Reference in New Issue