mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-05-07 01:00:05 +08:00
fix a formula
This commit is contained in:
@@ -281,7 +281,7 @@ func countersToStats(query QueryInfoAndCounters, uptime int64, tc totalCounters)
|
||||
queryStats.QueryTime.Pct = queryStats.QueryTime.Total * 100 / tc.QueryTime
|
||||
}
|
||||
if tc.Bytes > 0 {
|
||||
queryStats.ResponseLength.Pct = queryStats.ResponseLength.Total / tc.Bytes
|
||||
queryStats.ResponseLength.Pct = queryStats.ResponseLength.Total * 100 / tc.Bytes
|
||||
}
|
||||
if queryStats.Returned.Total > 0 {
|
||||
queryStats.Ratio = queryStats.Scanned.Total / queryStats.Returned.Total
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"Median": 0
|
||||
},
|
||||
"ResponseLength": {
|
||||
"Pct": 0.9995949739087844,
|
||||
"Pct": 99.95949739087844,
|
||||
"Total": 1061230,
|
||||
"Min": 1061230,
|
||||
"Max": 1061230,
|
||||
@@ -75,7 +75,7 @@
|
||||
"Median": 7
|
||||
},
|
||||
"ResponseLength": {
|
||||
"Pct": 0.00020251304560782172,
|
||||
"Pct": 0.020251304560782172,
|
||||
"Total": 215,
|
||||
"Min": 215,
|
||||
"Max": 215,
|
||||
@@ -128,7 +128,7 @@
|
||||
"Median": 0
|
||||
},
|
||||
"ResponseLength": {
|
||||
"Pct": 0.00020251304560782172,
|
||||
"Pct": 0.020251304560782172,
|
||||
"Total": 215,
|
||||
"Min": 215,
|
||||
"Max": 215,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"Median": 0
|
||||
},
|
||||
"ResponseLength": {
|
||||
"Pct": 1,
|
||||
"Pct": 100,
|
||||
"Total": 1061660,
|
||||
"Min": 215,
|
||||
"Max": 1061230,
|
||||
|
||||
Reference in New Issue
Block a user