make max output settings
This commit is contained in:
@@ -307,6 +307,17 @@ func (p *Parser) parseFile() (*File, error) {
|
||||
}
|
||||
f.MemoryLimit = n
|
||||
|
||||
case "max_output":
|
||||
p.advance()
|
||||
if _, err := p.expect(TOKEN_ASSIGN); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
n, err := p.parseSize()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
f.MaxOutput = n
|
||||
|
||||
case "group":
|
||||
g, err := p.parseGroup(f.Timeout, f.MemoryLimit)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user