Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat committed Feb 15, 2024
1 parent 5776a74 commit 43db81d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public class BrokerLoadData {
private double msgThroughputOut; // bytes/sec
private double msgRateIn; // messages/sec
private double msgRateOut; // messages/sec
private int bundleCount;
private int topics;
private long bundleCount;
private long topics;

// Load data features computed from the above resources.
private double maxResourceUsage; // max of resource usages
Expand Down Expand Up @@ -115,8 +115,8 @@ public void update(final SystemResourceUsage usage,
double msgThroughputOut,
double msgRateIn,
double msgRateOut,
int bundleCount,
int topics,
long bundleCount,
long topics,
ServiceConfiguration conf) {
updateSystemResourceUsage(usage.cpu, usage.memory, usage.directMemory, usage.bandwidthIn, usage.bandwidthOut);
this.msgThroughputIn = msgThroughputIn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public synchronized void updateStats(
topicStatsStream.endObject();
});

brokerStats.bundleCount += (int) bundles.size();
brokerStats.bundleCount += bundles.size();
brokerStats.producerCount += nsStats.producerCount;
brokerStats.replicatorCount += nsStats.replicatorCount;
brokerStats.subsCount += nsStats.subsCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ public void updateRates(NamespaceStats nsStats, NamespaceBundleStats bundleStats

// Start subscription stats
topicStatsStream.startObject("subscriptions");
nsStats.subsCount += (int) (subscriptions.size());
nsStats.subsCount += subscriptions.size();

subscriptions.forEach((subscriptionName, subscription) -> {
double subMsgRateOut = 0;
Expand Down

0 comments on commit 43db81d

Please sign in to comment.