Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
download file time limit change from 30min to 2hour, change TMPDIR to…
Browse files Browse the repository at this point in the history
… /sdcard
  • Loading branch information
codeskyblue committed Mar 19, 2018
1 parent aa00131 commit d08b34c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion background.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/franela/goreq"
)

const defaultDownloadTimeout = 30 * time.Minute
const defaultDownloadTimeout = 2 * time.Hour

var background = &Background{
sm: syncmap.New(),
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ func main() {
}
}

os.Setenv("TMPDIR", "/sdcard/")
if *fDaemon && os.Getenv("ATX_AGENT") == "" {
runDaemon()
return
Expand Down

0 comments on commit d08b34c

Please sign in to comment.