Merge pull request #563 from fkautz/pr_out_fixing_documentation_issues_with_expire

This commit is contained in:
Frederick F. Kautz IV 2015-05-01 18:22:03 -07:00
commit 944d88c8ae

View File

@ -58,7 +58,7 @@ var memoryCmd = cli.Command{
minio mode {{.Name}} - {{.Description}}
USAGE:
minio mode {{.Name}} SIZE
minio mode {{.Name}} limit SIZE expire TIME
EXAMPLES:
1. Limit maximum memory usage to 64MB with 1h expiration
@ -167,7 +167,7 @@ func runMemory(c *cli.Context) {
args = args.Tail()
maxMemorySet = true
}
case "expiration":
case "expire":
{
if expirationSet {
Fatalf("Expiration should be set only once")
@ -186,6 +186,9 @@ func runMemory(c *cli.Context) {
}
}
}
if maxMemorySet == false {
Fatalln("Memory limit must be set")
}
memoryDriver := server.MemoryFactory{
Config: apiServerConfig,
MaxMemory: maxMemory,