mirror of https://github.com/Chocobozzz/PeerTube
Fix AutoThread
parent
65fcf1e9c2
commit
9e91237655
|
@ -72,10 +72,10 @@ export class CustomConfigValidatorsService {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.TRANSCODING_THREADS = {
|
this.TRANSCODING_THREADS = {
|
||||||
VALIDATORS: [ Validators.required, Validators.min(1) ],
|
VALIDATORS: [ Validators.required, Validators.min(0) ],
|
||||||
MESSAGES: {
|
MESSAGES: {
|
||||||
'required': this.i18n('Transcoding threads is required.'),
|
'required': this.i18n('Transcoding threads is required.'),
|
||||||
'min': this.i18n('Transcoding threads must be greater than 1.')
|
'min': this.i18n('Transcoding threads must be greater or equal to 0.')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue