Skip to content

Commit

Permalink
fix(settings): Calculate correct default quota option sizes
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Sep 3, 2024
1 parent 8d02101 commit 2eaa71e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/settings/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ import AdminGroupSelect from './AdminGroupSelect'
import SubAdminGroupSelect from './SubAdminGroupSelect'
import { loadState } from '@nextcloud/initial-state'

const bytesInOneGibibyte = Math.pow(1024, 3)
const defaultQuotaOptions = {
'1 GB': 1073741274,
'5 GB': 5368709120,
'10 GB': 10737412742,
'1 GiB': bytesInOneGibibyte,
'5 GiB': bytesInOneGibibyte * 5,
'10 GiB': bytesInOneGibibyte * 10,
Unlimited: -3,
}

Expand Down

0 comments on commit 2eaa71e

Please sign in to comment.