Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
99290: server: fix `WriteBytesPerSecond` stat assignment r=koorosh a=koorosh

This patch fixes incorrect assignment of `WriteBytesPerSecond` stat in
 `rangeInfo` func that is used by StatusServer APIs only.

Fixes: cockroachdb#99291

Release note: None

Co-authored-by: Andrii Vorobiov <and.vorobiov@gmail.com>
  • Loading branch information
craig[bot] and koorosh committed Mar 23, 2023
2 parents 5493fdf + 76e186b commit 77ab217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ func (s *systemStatusServer) rangesHelper(
RequestsPerSecond: loadStats.RequestsPerSecond,
WritesPerSecond: loadStats.WriteKeysPerSecond,
ReadsPerSecond: loadStats.ReadKeysPerSecond,
WriteBytesPerSecond: loadStats.WriteKeysPerSecond,
WriteBytesPerSecond: loadStats.WriteBytesPerSecond,
ReadBytesPerSecond: loadStats.ReadBytesPerSecond,
CPUTimePerSecond: loadStats.RaftCPUNanosPerSecond + loadStats.RequestCPUNanosPerSecond,
},
Expand Down

0 comments on commit 77ab217

Please sign in to comment.