fix a formula

This commit is contained in:
MATSUU Takuto
2017-09-13 18:01:47 +09:00
parent 66decef3fd
commit 3928b1e47f
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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,