|
@@ -254,15 +254,30 @@ questions:
|
|
|
attrs:
|
|
|
- variable: cpu
|
|
|
label: CPU
|
|
|
- description: CPU limit for qBittorrent.
|
|
|
+ description: CPU limit for Chia.
|
|
|
schema:
|
|
|
type: string
|
|
|
- default: 4000m
|
|
|
+ max_length: 6
|
|
|
+ valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
|
|
|
+ valid_chars_error: |
|
|
|
+ Valid CPU limit formats are</br>
|
|
|
+ - Plain Integer - eg. 1</br>
|
|
|
+ - Float - eg. 0.5</br>
|
|
|
+ - Milicpu - eg. 500m
|
|
|
+ default: "4000m"
|
|
|
required: true
|
|
|
- variable: memory
|
|
|
label: Memory
|
|
|
- description: Memory limit for qBittorrent.
|
|
|
+ description: Memory limit for Chia.
|
|
|
schema:
|
|
|
type: string
|
|
|
- default: 8Gi
|
|
|
+ max_length: 12
|
|
|
+ valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
|
|
|
+ valid_chars_error: |
|
|
|
+ Valid Memory limit formats are</br>
|
|
|
+ - Suffixed with E/P/T/G/M/K - eg. 1G</br>
|
|
|
+ - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
|
|
|
+ - Plain Integer in bytes - eg. 1024</br>
|
|
|
+ - Exponent - eg. 134e6
|
|
|
+ default: "8Gi"
|
|
|
required: true
|