diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-06-05 17:24:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-06-05 17:28:03 +0200 |
commit | 3c927a9f325d74516e6671930de4eb01f2a9b056 (patch) | |
tree | fc9b114e830b4017a7d6e8e51fbdf07bdeed67fd /loolwsd.xml.in | |
parent | 230aa62d17e4237e344fcf7d95491dbbd97ec660 (diff) |
wsd: allow disabling idlesave and autosave from configuration
The code already assumed a signed integer, but the configuration advertised
unsigned, standardize on signed.
This way it doesn't matter if the "disable" value is zero or a negative
number.
Change-Id: I56632c8a36be01afefdc5f2a35e70bde945d69d3
Diffstat (limited to 'loolwsd.xml.in')
-rw-r--r-- | loolwsd.xml.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/loolwsd.xml.in b/loolwsd.xml.in index 5ffb55ab7..b0fd22464 100644 --- a/loolwsd.xml.in +++ b/loolwsd.xml.in @@ -20,8 +20,9 @@ <redlining_as_comments desc="If true show red-lines as comments" type="bool" default="true">true</redlining_as_comments> <idle_timeout_secs desc="The maximum number of seconds before unloading an idle document. Defaults to 1 hour." type="uint" default="3600">3600</idle_timeout_secs> <!-- Idle save and auto save are checked every 30 seconds --> - <idlesave_duration_secs desc="The number of idle seconds after which document, if modified, should be saved. Defaults to 30 seconds." type="uint" default="30">30</idlesave_duration_secs> - <autosave_duration_secs desc="The number of seconds after which document, if modified, should be saved. Defaults to 5 minutes." type="uint" default="300">300</autosave_duration_secs> + <!-- They are disabled when the value is zero or negative. --> + <idlesave_duration_secs desc="The number of idle seconds after which document, if modified, should be saved. Defaults to 30 seconds." type="int" default="30">30</idlesave_duration_secs> + <autosave_duration_secs desc="The number of seconds after which document, if modified, should be saved. Defaults to 5 minutes." type="int" default="300">300</autosave_duration_secs> <limit_virt_mem_kb desc="The maximum virtual memory allowed to each document process. 0 for unlimited, 1700 min." type="uint">0</limit_virt_mem_kb> <limit_data_mem_kb desc="The maximum memory data segment allowed to each document process. 0 for unlimited." type="uint">0</limit_data_mem_kb> <limit_stack_mem_kb desc="The maximum stack size allowed to each document process. 0 for unlimited." type="uint">8000</limit_stack_mem_kb> |