From 4b176b87b40ae7750753dde360c1c293c3c2eb5d Mon Sep 17 00:00:00 2001 From: Oleg Shuralev Date: Sun, 19 Jan 2020 20:50:24 +0300 Subject: [PATCH] [API] Update cluster mocks --- api/mocks/brokers.js | 4 ++-- api/services/clusters.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/mocks/brokers.js b/api/mocks/brokers.js index a6113a297e..5d40c5f490 100644 --- a/api/mocks/brokers.js +++ b/api/mocks/brokers.js @@ -1,6 +1,6 @@ const randomBroker = () => ({ - bytesInPerSec: Math.ceil(Math.random() * 10000), - bytesOutPerSec: Math.ceil(Math.random() * 10000), + bytesInPerSec: Math.ceil(Math.random() * 10_000), + bytesOutPerSec: Math.ceil(Math.random() * 10_000), segmentSize: Math.ceil(Math.random() * 1_000_000_000), partitionReplicas: 134, }); diff --git a/api/services/clusters.js b/api/services/clusters.js index 2c10f69c85..c98722a84c 100644 --- a/api/services/clusters.js +++ b/api/services/clusters.js @@ -11,6 +11,8 @@ module.exports = function (fastify, opts, next) { brokerCount: 1, onlinePartitionCount: 20, topicCount: 2, + bytesInPerSec: Math.ceil(Math.random() * 10_000), + bytesOutPerSec: Math.ceil(Math.random() * 10_000), }, { id: 'dMMQx-WRh77BKYas_g2ZTz', @@ -20,6 +22,8 @@ module.exports = function (fastify, opts, next) { brokerCount: 0, onlinePartitionCount: 0, topicCount: 0, + bytesInPerSec: Math.ceil(Math.random() * 10_000), + bytesOutPerSec: Math.ceil(Math.random() * 10_000), }, ]); });