Skip to content

Commit

Permalink
use MB for default value, round to integer in number sliders
Browse files Browse the repository at this point in the history
  • Loading branch information
tmgrask committed Nov 7, 2024
1 parent aa80fa7 commit 51f7f97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/EditableNumberSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 51f7f97

Please sign in to comment.