Db threads modify in config interface

This commit is contained in:
shortcutme 2019-11-30 02:14:54 +01:00
parent 1a17645e93
commit 37b8c0241f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 49 additions and 3 deletions

View file

@ -191,6 +191,20 @@ class ConfigStorage extends Class
{title: "10 threads", value: 10}
]
section.items.push
key: "threads_db"
title: "Threads for database operations"
type: "select"
options: [
{title: "Sync execution", 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

View file

@ -1539,7 +1539,7 @@
}
]
});
return section.items.push({
section.items.push({
key: "threads_crypt",
title: "Threads for cryptographic functions",
type: "select",
@ -1568,6 +1568,35 @@
}
]
});
return section.items.push({
key: "threads_db",
title: "Threads for database operations",
type: "select",
options: [
{
title: "Sync execution",
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
}
]
});
};
ConfigStorage.prototype.createSection = function(title) {