- commit
- 6e6fc5e
- parent
- ec83e1d
- author
- Eric Bower
- date
- 2024-10-18 14:36:02 +0000 UTC
chore(pgs): print 4 decimal places special files
3 files changed,
+7,
-7
+4,
-4
1@@ -357,9 +357,9 @@ func (h *UploadAssetHandler) Write(s ssh.Session, entry *sendutils.FileEntry) (s
2 return "", fmt.Errorf("storage quota reached")
3 }
4 logger = logger.With(
5- "storage max", storageMax,
6- "current storage max", curStorageSize,
7- "file max", fileMax,
8+ "storageMax", storageMax,
9+ "currentStorageMax", curStorageSize,
10+ "fileMax", fileMax,
11 "sizeRemaining", sizeRemaining,
12 )
13
14@@ -375,7 +375,7 @@ func (h *UploadAssetHandler) Write(s ssh.Session, entry *sendutils.FileEntry) (s
15 if err != nil {
16 logger.Error("could not write asset", "err", err.Error())
17 cerr := fmt.Errorf(
18- "%s: storage size %.2fmb, storage max %.2fmb, file max %.2fmb, special file max %.2fmb",
19+ "%s: storage size %.2fmb, storage max %.2fmb, file max %.2fmb, special file max %.4fmb",
20 err,
21 utils.BytesToMB(int(curStorageSize)),
22 utils.BytesToMB(int(storageMax)),
M
go.mod
+1,
-1
1@@ -40,7 +40,7 @@ require (
2 github.com/picosh/pubsub v0.0.0-20241008010300-a63fd95dc8ed
3 github.com/picosh/send v0.0.0-20241008013240-6fdbff00f848
4 github.com/picosh/tunkit v0.0.0-20240709033345-8315d4f3cd0e
5- github.com/picosh/utils v0.0.0-20241008004349-f48b50af554b
6+ github.com/picosh/utils v0.0.0-20241018143404-b351d5d765f3
7 github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
8 github.com/sendgrid/sendgrid-go v3.14.0+incompatible
9 github.com/simplesurance/go-ip-anonymizer v0.0.0-20200429124537-35a880f8e87d
M
go.sum
+2,
-2
1@@ -275,8 +275,8 @@ github.com/picosh/senpai v0.0.0-20240503200611-af89e73973b0 h1:pBRIbiCj7K6rGELij
2 github.com/picosh/senpai v0.0.0-20240503200611-af89e73973b0/go.mod h1:QaBDtybFC5gz7EG/9c3bgzuyW7W5W2rYLFZxWNuWk3Q=
3 github.com/picosh/tunkit v0.0.0-20240709033345-8315d4f3cd0e h1:3rNSjBJ6VlvngWF58V/z0fPLH7WyzKpSboC6YznECgw=
4 github.com/picosh/tunkit v0.0.0-20240709033345-8315d4f3cd0e/go.mod h1:UrDH/VCIc1wg/L6iY2zSYt4TiGw+25GsKSnkVkU40Dw=
5-github.com/picosh/utils v0.0.0-20241008004349-f48b50af554b h1:PvWk8Y7JhC1bK4Ns7FUFfcvi+BGZ+K07wTA2VDTmfDQ=
6-github.com/picosh/utils v0.0.0-20241008004349-f48b50af554b/go.mod h1:ftrp1FjbKK/mFnBAYGymA1QEtPlkA0+lWkPI5h0HKt4=
7+github.com/picosh/utils v0.0.0-20241018143404-b351d5d765f3 h1:1t/w0GrzwA3rkdotEsHbZIlCOv0T28qtO0U60/iOgQQ=
8+github.com/picosh/utils v0.0.0-20241018143404-b351d5d765f3/go.mod h1:ftrp1FjbKK/mFnBAYGymA1QEtPlkA0+lWkPI5h0HKt4=
9 github.com/pkg/sftp v1.13.6 h1:JFZT4XbOU7l77xGSpOdW+pwIMqP044IyjXX6FGyEKFo=
10 github.com/pkg/sftp v1.13.6/go.mod h1:tz1ryNURKu77RL+GuCzmoJYxQczL3wLNNpPWagdg4Qk=
11 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=