mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-16 16:23:30 +00:00
Compare commits
1 Commits
dependabot
...
PMM-13897-
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b7a1dcd72e |
@@ -16,7 +16,6 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
planSummaryCollScan = "COLLSCAN"
|
planSummaryCollScan = "COLLSCAN"
|
||||||
planSummaryIXScan = "IXSCAN"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type StatsError struct {
|
type StatsError struct {
|
||||||
@@ -106,9 +105,8 @@ func (s *Stats) Add(doc proto.SystemProfile) error {
|
|||||||
if qiac.PlanSummary == planSummaryCollScan {
|
if qiac.PlanSummary == planSummaryCollScan {
|
||||||
qiac.CollScanCount++
|
qiac.CollScanCount++
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(qiac.PlanSummary, planSummaryIXScan) {
|
|
||||||
qiac.PlanSummary = planSummaryIXScan
|
qiac.PlanSummary = strings.Split(qiac.PlanSummary, " ")[0]
|
||||||
}
|
|
||||||
|
|
||||||
qiac.NReturned = append(qiac.NReturned, float64(doc.Nreturned))
|
qiac.NReturned = append(qiac.NReturned, float64(doc.Nreturned))
|
||||||
qiac.QueryTime = append(qiac.QueryTime, float64(doc.Millis))
|
qiac.QueryTime = append(qiac.QueryTime, float64(doc.Millis))
|
||||||
|
Reference in New Issue
Block a user