You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Fix percentage calculation
This commit is contained in:
@@ -38,5 +38,5 @@ export function percentageWithin(pct: number, min: number, max: number): number
|
||||
}
|
||||
|
||||
export function percentageOf(val: number, min: number, max: number): number {
|
||||
return (val - min) / max;
|
||||
return (val - min) / (max - min);
|
||||
}
|
||||
|
Reference in New Issue
Block a user