Skip to content

Commit 0d4f07f

Browse files
committed
Merge remote-tracking branch 'couchbase/morpheus'
Change-Id: Ie7c937c2611ba47159aafcfb88d88a96deece3e4
2 parents b009b9c + 729edfc commit 0d4f07f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

accounting/gometrics/accounting_gm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (g *gometricsAccountingStore) Vitals(backward bool, style util.DurationStyl
110110
totCount := request_timer.Count()
111111
var prepPercent float64
112112
if totCount > 0 {
113-
prepPercent = float64(prepared.Count()) / float64(totCount)
113+
prepPercent = float64(prepared.Count()) / float64(totCount) * 100
114114
} else {
115115
prepPercent = 0.0
116116
}
@@ -130,7 +130,7 @@ func (g *gometricsAccountingStore) Vitals(backward bool, style util.DurationStyl
130130
"cpu.sys.percent": util.RoundPlaces(sPerc, 4),
131131
"request.active.count": int64(actCount),
132132
"request.quota.used.hwm": used_memory_hwm.Value(),
133-
"request.prepared.percent": prepPercent,
133+
"request.prepared.percent": util.RoundPlaces(prepPercent, 4),
134134
"spills.order": spillsOrder.Count(),
135135
}
136136
if backward {

0 commit comments

Comments
 (0)