Merge config js

This commit is contained in:
shortcutme 2019-11-20 14:08:19 +01:00
parent a5f8a53196
commit d85c27e67b
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 60 additions and 2 deletions

View File

@ -1464,7 +1464,7 @@
})(this) })(this)
}); });
section = this.createSection("Performance"); section = this.createSection("Performance");
return section.items.push({ section.items.push({
key: "log_level", key: "log_level",
title: "Level of logging to file", title: "Level of logging to file",
type: "select", type: "select",
@ -1481,6 +1481,64 @@
} }
] ]
}); });
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
}
]
});
return 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
}
]
});
}; };
ConfigStorage.prototype.createSection = function(title) { ConfigStorage.prototype.createSection = function(title) {
@ -1689,7 +1747,7 @@
}, item.options.map((function(_this) { }, item.options.map((function(_this) {
return function(option) { return function(option) {
return h("option", { return h("option", {
selected: option.value === _this.values[item.key], selected: option.value.toString() === _this.values[item.key],
value: option.value value: option.value
}, option.title); }, option.title);
}; };