Skip to content

Commit

Permalink
[fix][sec] implicit narrowing conversion in compound assignment (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyepianzhou authored and Technoboy- committed Apr 1, 2024
1 parent 5ef60ed commit 9a43ab0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public interface SubscriptionStats {
double getMessageAckRate();

/** Chunked message dispatch rate. */
int getChunkedMessageRate();
double getChunkedMessageRate();

/** Number of entries in the subscription backlog. */
long getMsgBacklog();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class SubscriptionStatsImpl implements SubscriptionStats {
public double messageAckRate;

/** Chunked message dispatch rate. */
public int chunkedMessageRate;
public double chunkedMessageRate;

/** Number of entries in the subscription backlog. */
public long msgBacklog;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class LocalBrokerData implements LoadManagerReport {
// The stats given in the most recent invocation of update.
private Map<String, NamespaceBundleStats> lastStats;

private int numTopics;
private long numTopics;
private int numBundles;
private int numConsumers;
private int numProducers;
Expand Down Expand Up @@ -202,7 +202,7 @@ private void updateBundleData(final Map<String, NamespaceBundleStats> bundleStat
msgRateOut = 0;
msgThroughputIn = 0;
msgThroughputOut = 0;
int totalNumTopics = 0;
long totalNumTopics = 0;
int totalNumBundles = 0;
int totalNumConsumers = 0;
int totalNumProducers = 0;
Expand Down

0 comments on commit 9a43ab0

Please sign in to comment.