Skip to content

Commit ed452c0

Browse files
committed
Get depth from correct source
1 parent 7dde096 commit ed452c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mqmetric/discover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func discoverAndSubscribe(dc DiscoverConfig, redo bool) error {
367367
if err == nil {
368368
if !ci.useStatistics {
369369
subSel := dc.MonitoredQueues.SubscriptionSelector
370-
if subSel != "" && !strings.Contains(subSel, "GENERAL") && !strings.Contains(subSel, "GET") {
370+
if !ci.usePublications || (subSel != "" && !strings.Contains(subSel, "GENERAL") && !strings.Contains(subSel, "GET")) {
371371
logDebug("Setting connection to grab qdepth via QSTATUS")
372372
ci.useDepthFromStatus = true
373373
} else {

0 commit comments

Comments
 (0)