Change fs thread number on config interface

This commit is contained in:
shortcutme 2019-11-20 14:07:04 +01:00
parent 6262c80886
commit 6c31a3b77e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 31 additions and 2 deletions

View file

@ -149,6 +149,34 @@ class ConfigStorage extends Class
{title: "Only errors", value: "ERROR"}
]
section.items.push
key: "threads_fs_read"
title: "Threads for async file system reads"
type: "select"
options: [
{title: "Sync read", value: 0}
{title: "1 thread", value: 1}
{title: "2 threads", value: 2}
{title: "3 threads", value: 3}
{title: "4 threads", value: 4}
{title: "5 threads", value: 5}
{title: "10 threads", value: 10}
]
section.items.push
key: "threads_fs_write"
title: "Threads for async file system writes"
type: "select"
options: [
{title: "Sync write", value: 0}
{title: "1 thread", value: 1}
{title: "2 threads", value: 2}
{title: "3 threads", value: 3}
{title: "4 threads", value: 4}
{title: "5 threads", value: 5}
{title: "10 threads", value: 10}
]
createSection: (title) =>
section = {}
section.title = title