Skip to content

Commit

Permalink
deal with JuiceFS 1P available problem (threshold 1000T)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Jan 15, 2025
1 parent 9190b21 commit 6302fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upload/app/handler4.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (a *appController) UploadedBytes(c *fiber.Ctx) error {
}

const (
maxReasonableSpace = int64(1) << 60 // 1PB in bytes
maxReasonableSpace = 1000 * 1e12 // 1000T
)

func checkDiskSpace(filePath string, newContentSize int64) (bool, int64, int64, int64, error) {
Expand Down

0 comments on commit 6302fb3

Please sign in to comment.