Skip to content

Commit

Permalink
OM-209 - fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mphanias committed Oct 30, 2024
1 parent 128bac3 commit 0c859e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/statprocessors/sp_namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (nw *NamespaceStatsProcessor) refreshNamespaceStats(singleInfoKey string, i
if strings.Contains(latencySubcommand, "enable-") {
latencySubcommand = strings.ReplaceAll(latencySubcommand, "enable-", "")
}
// some histogram command has 'hist-' prefix but the latency command does not expect hist- when issue the command
// some histogram stats has 'hist-' in the config, but the latency command does not expect hist- when issue the command
if strings.Contains(latencySubcommand, "hist-") {
latencySubcommand = strings.ReplaceAll(latencySubcommand, "hist-", "")
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/statprocessors/sp_node_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (sw *NodeStatsProcessor) handleRefresh(nodeRawMetrics string) []AerospikeSt
if strings.Contains(latencySubcommand, "enable-") {
latencySubcommand = strings.ReplaceAll(latencySubcommand, "enable-", "")
}
// some histogram command has 'hist-' prefix but the latency command does not expect hist- when issue the command
// some histogram stats has 'hist-' in the config, but the latency command does not expect hist- when issue the command
if strings.Contains(latencySubcommand, "hist-") {
latencySubcommand = strings.ReplaceAll(latencySubcommand, "hist-", "")
}
Expand Down

0 comments on commit 0c859e2

Please sign in to comment.