Skip to content

Commit 38d291f

Browse files
committed
change default idle timeout (from 60 to 120 sec)
1 parent fa514a5 commit 38d291f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.MD

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ go-hash -db /path/to/file
105105

106106
If the file already exists, go-hash will try to load it as an existing database.
107107

108-
`go-hash` will prompt for master password if idle for 60 seconds (default). To change the timeout, use flag `-idle <number of seconds>`. Use `0` for no timeout.
108+
`go-hash` will prompt for master password if idle for 120 seconds (default). To change the timeout, use flag `-idle <number of seconds>`. Use `0` for no timeout.
109109

110110
```
111111
go-hash -idle 0

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func main() {
249249
fmt.Printf("%s (db version: %s)\n\n", os.Args[0], gohash_db.DBVersion) // verbose
250250

251251
var dbFilePath string
252-
flag.UintVar(&idleSec, "idle", 60, "password timeout, in seconds (use 0 for no timeout)")
252+
flag.UintVar(&idleSec, "idle", 120, "password timeout, in seconds (use 0 for no timeout)")
253253
flag.StringVar(&dbFilePath, "db", getGoHashFilePath(), "file where password data is stored")
254254
flag.Parse()
255255

0 commit comments

Comments
 (0)