From 51f7f9794002d99965d8f7820795b3414e76b38f Mon Sep 17 00:00:00 2001 From: tmgrask Date: Thu, 7 Nov 2024 16:31:46 -0500 Subject: [PATCH] use MB for default value, round to integer in number sliders --- src/components/EditableNumberSlider.tsx | 2 +- src/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/EditableNumberSlider.tsx b/src/components/EditableNumberSlider.tsx index 13adac9..356fd3f 100644 --- a/src/components/EditableNumberSlider.tsx +++ b/src/components/EditableNumberSlider.tsx @@ -66,7 +66,7 @@ export function EditableNumberSlider({ const value = useSharedValue(originalValue); const displayText = useDerivedValue(() => { const changed = value.value === originalValue ? " " : "*"; - return `${value.value}` + changed; + return `${Math.round(value.value)}` + changed; }); const canvasSize = useSharedValue({ width: 0, height: 0 }); diff --git a/src/constants.ts b/src/constants.ts index 9d4eca9..4a3cebd 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -18,7 +18,7 @@ */ export const DEFAULT_INPROXY_MAX_CLIENTS = 2; -export const DEFAULT_INPROXY_LIMIT_BYTES_PER_SECOND = 10 * 1024 * 1024; // 10 MB +export const DEFAULT_INPROXY_LIMIT_BYTES_PER_SECOND = 10 * 1000 * 1000; // 10 MB // if these are maxed out, it means a potential of 8Gbps at full capacity export const INPROXY_MAX_CLIENTS_MAX = 25;