From e4adeece6d86435c5ff2dec23df3092252e4f97f Mon Sep 17 00:00:00 2001 From: Oleg Shuralev Date: Wed, 8 Jan 2020 03:07:57 +0300 Subject: [PATCH] [API] Mocking --- api/mocks/brokerMetrics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/mocks/brokerMetrics.js b/api/mocks/brokerMetrics.js index acbffa4148..f29c98d828 100644 --- a/api/mocks/brokerMetrics.js +++ b/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: [