From 0c859e2f641639947398c4ecc8f1c6b66999e50b Mon Sep 17 00:00:00 2001 From: mphanias Date: Wed, 30 Oct 2024 13:47:14 +0530 Subject: [PATCH] OM-209 - fixed comments --- internal/pkg/statprocessors/sp_namespaces.go | 2 +- internal/pkg/statprocessors/sp_node_stats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/statprocessors/sp_namespaces.go b/internal/pkg/statprocessors/sp_namespaces.go index 08ed238..5865c33 100644 --- a/internal/pkg/statprocessors/sp_namespaces.go +++ b/internal/pkg/statprocessors/sp_namespaces.go @@ -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-", "") } diff --git a/internal/pkg/statprocessors/sp_node_stats.go b/internal/pkg/statprocessors/sp_node_stats.go index 1f6683e..e78aa86 100644 --- a/internal/pkg/statprocessors/sp_node_stats.go +++ b/internal/pkg/statprocessors/sp_node_stats.go @@ -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-", "") }