Oleg Shuralev 5 lat temu
rodzic
commit
e4adeece6d
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      api/mocks/brokerMetrics.js

+ 3 - 3
api/mocks/brokerMetrics.js

@@ -5,9 +5,9 @@ const randomBrokerMetrics = () => ({
   zooKeeperStatus: 1,
   activeControllers: 1,
   uncleanLeaderElectionCount: 0,
-  networkPoolUsage: Math.random(),
-  requestPoolUsage: Math.random(),
-  onlinePartitionCount: Math.ceil(Math.random() * 1000),
+  networkPoolUsage: Math.random() * 0.01,
+  requestPoolUsage: Math.random() * 0.01,
+  onlinePartitionCount: Math.ceil(Math.random() * 100),
   underReplicatedPartitionCount: Math.ceil(Math.random() * 10),
   offlinePartitionCount: Math.ceil(Math.random() * 10),
   diskUsage: [