From 57e303aa9f6862696a6ed547ec8bf8d55d836b69 Mon Sep 17 00:00:00 2001 From: Saranya Date: Thu, 27 Jun 2024 16:24:02 -0700 Subject: [PATCH] fix: display correct sm bandwidth in bytes/sec (#42) --- .../js/dashboard-frontend/src/__tests__/ComponentTable.test.tsx | 1 + src/main/js/dashboard-frontend/src/components/StreamManager.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/js/dashboard-frontend/src/__tests__/ComponentTable.test.tsx b/src/main/js/dashboard-frontend/src/__tests__/ComponentTable.test.tsx index b65c06f..614dff0 100644 --- a/src/main/js/dashboard-frontend/src/__tests__/ComponentTable.test.tsx +++ b/src/main/js/dashboard-frontend/src/__tests__/ComponentTable.test.tsx @@ -45,6 +45,7 @@ test("Service item points to the right href", () => { .findBodyCell(1, 2)! .getElement()! .firstElementChild! + .firstElementChild! .getAttribute("href") ).toEqual(SERVICE_ROUTE_HREF_PREFIX + fullRangeList[0].name); }); diff --git a/src/main/js/dashboard-frontend/src/components/StreamManager.tsx b/src/main/js/dashboard-frontend/src/components/StreamManager.tsx index 6615bc9..cae3ed0 100644 --- a/src/main/js/dashboard-frontend/src/components/StreamManager.tsx +++ b/src/main/js/dashboard-frontend/src/components/StreamManager.tsx @@ -254,7 +254,7 @@ function StreamManager() { JVM_ARGS: jvmArgs, LOG_LEVEL: logLevel, STREAM_MANAGER_AUTHENTICATE_CLIENT: streamManagerAuthenticateClient, - STREAM_MANAGER_EXPORTER_MAX_BANDWIDTH: formatBytes(parseInt(streamManagerExporterMaxBandwidth || "0", 10)) + "/s", + STREAM_MANAGER_EXPORTER_MAX_BANDWIDTH: formatBytes(parseInt(streamManagerExporterMaxBandwidth || "0", 10)*1024/8) + "/s", STREAM_MANAGER_EXPORTER_S3_DESTINATION_MULTIPART_UPLOAD_MIN_PART_SIZE_BYTES: formatBytes(parseInt(streamManagerS3UploadMinPart || "0", 10)), STREAM_MANAGER_SERVER_PORT: streamManagerServerPort, STREAM_MANAGER_STORE_ROOT_DIR: streamManagerStoreRootDir,