mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 18:34:59 +00:00
PMM-13897 Remove {} from all values in Plan Summary. (#950)
This commit is contained in:
@@ -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