Skip to content

Commit 270c695

Browse files
committed
f Stats grouping
1 parent 7dae797 commit 270c695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Equinox.CosmosStore/CosmosStore.fs

+2-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ module Log =
350350
prevCat.PadRight maxBucketLen, reqs, rps reqs, ups (catRRu + catWRu), ups catRRu, "R", ups catWRu, "W")
351351
catR <- 0; catRRu <- 0; catW <- 0; catWRu <- 0; prevCat <- cat
352352
for bucket in buckets do
353-
bucket.Substring(0, bucket.IndexOf '/') |> logOnCatChange
353+
let group = match bucket.IndexOf '/' with -1 -> bucket | i -> bucket.Substring(0, i)
354+
group |> logOnCatChange
354355
for act, counts in stats do
355356
match counts.TryBucket bucket with
356357
| Some stat when stat.count <> 0L ->

0 commit comments

Comments
 (0)