Skip to content

Commit 57e303a

Browse files
authored
fix: display correct sm bandwidth in bytes/sec (#42)
1 parent 30e4571 commit 57e303a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/js/dashboard-frontend/src/__tests__/ComponentTable.test.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ test("Service item points to the right href", () => {
4545
.findBodyCell(1, 2)!
4646
.getElement()!
4747
.firstElementChild!
48+
.firstElementChild!
4849
.getAttribute("href")
4950
).toEqual(SERVICE_ROUTE_HREF_PREFIX + fullRangeList[0].name);
5051
});

src/main/js/dashboard-frontend/src/components/StreamManager.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function StreamManager() {
254254
JVM_ARGS: jvmArgs,
255255
LOG_LEVEL: logLevel,
256256
STREAM_MANAGER_AUTHENTICATE_CLIENT: streamManagerAuthenticateClient,
257-
STREAM_MANAGER_EXPORTER_MAX_BANDWIDTH: formatBytes(parseInt(streamManagerExporterMaxBandwidth || "0", 10)) + "/s",
257+
STREAM_MANAGER_EXPORTER_MAX_BANDWIDTH: formatBytes(parseInt(streamManagerExporterMaxBandwidth || "0", 10)*1024/8) + "/s",
258258
STREAM_MANAGER_EXPORTER_S3_DESTINATION_MULTIPART_UPLOAD_MIN_PART_SIZE_BYTES: formatBytes(parseInt(streamManagerS3UploadMinPart || "0", 10)),
259259
STREAM_MANAGER_SERVER_PORT: streamManagerServerPort,
260260
STREAM_MANAGER_STORE_ROOT_DIR: streamManagerStoreRootDir,

0 commit comments

Comments
 (0)