Skip to content

Commit

Permalink
Merge pull request #43 from Psiphon-Inc/tasker/default-mb-value
Browse files Browse the repository at this point in the history
default bandwidth limit in SI units
  • Loading branch information
tmgrask authored Nov 8, 2024
2 parents aa80fa7 + 51f7f97 commit d79fc3e
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 d79fc3e

Please sign in to comment.