- commit
- af05ecd
- parent
- 7493898
- author
- Eric Bower
- date
- 2024-05-15 03:31:24 +0000 UTC
chore: update storage quotas from 1024 -> 1000
2 files changed,
+4,
-4
1@@ -24,9 +24,8 @@ import (
2 var fnameRe = regexp.MustCompile(`[-_]+`)
3 var subdomainRe = regexp.MustCompile(`^[a-z0-9-]+$`)
4
5-var KB = 1024
6-var MB = KB * 1024
7-var GB = MB * 1024
8+var KB = 1000
9+var MB = KB * 1000
10
11 func IsValidSubdomain(subd string) bool {
12 return subdomainRe.MatchString(subd)
13@@ -150,7 +149,7 @@ func Shasum(data []byte) string {
14 }
15
16 func BytesToGB(size int) float32 {
17- return (((float32(size) / 1024) / 1024) / 1024)
18+ return (((float32(size) / 1000) / 1000) / 1000)
19 }
20
21 // https://stackoverflow.com/a/46964105
+1,
-0
1@@ -1,3 +1,4 @@
2 UPDATE feature_flags SET name = 'plus' WHERE name = 'pgs';
3+UPDATE feature_flags SET data = '{"file_max": 50000000, "storage_max": 20000000000}'::jsonb WHERE name = 'plus';
4
5 -- DELETE FROM feature_flags WHERE name = 'imgs' OR name = 'prose' OR name = 'tuns';