mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-07 21:09:14 +00:00
set Count parameter for totalStats
This commit is contained in:
@@ -293,6 +293,7 @@ func countersToStats(query QueryInfoAndCounters, uptime int64, tc totalCounters)
|
||||
func aggregateCounters(queries []QueryInfoAndCounters) QueryInfoAndCounters {
|
||||
qt := QueryInfoAndCounters{}
|
||||
for _, query := range queries {
|
||||
qt.Count += query.Count
|
||||
qt.NScanned = append(qt.NScanned, query.NScanned...)
|
||||
qt.NReturned = append(qt.NReturned, query.NReturned...)
|
||||
qt.QueryTime = append(qt.QueryTime, query.QueryTime...)
|
||||
|
@@ -6,7 +6,7 @@
|
||||
"Fingerprint": "",
|
||||
"FirstSeen": "0001-01-01T00:00:00Z",
|
||||
"LastSeen": "0001-01-01T00:00:00Z",
|
||||
"Count": 0,
|
||||
"Count": 3,
|
||||
"QPS": 0,
|
||||
"Rank": 0,
|
||||
"Ratio": 134.33333333333334,
|
||||
|
Reference in New Issue
Block a user