mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Re-added missing default threads_per_cpu
setting
This commit is contained in:
parent
b264424aea
commit
69151d058f
|
@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- [2020-06-12] Re-added missing default `threads_per_cpu` setting by [@lflare].
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
- [2020-06-12] Update ClientSettings.java changed showing client secret in logs back to hidden by [@dskilly].
|
- [2020-06-12] Update ClientSettings.java changed showing client secret in logs back to hidden by [@dskilly].
|
||||||
|
|
|
@ -50,14 +50,14 @@ public final class ClientSettings {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getThreadsPerCpu() {
|
public int getThreadsPerCpu() {
|
||||||
return threadsPerCpu;
|
return (threadsPerCpu > 0) ? threadsPerCpu : 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ClientSettings{" + "maxCacheSizeMib=" + maxCacheSizeMib + ", maxBandwidthMibPerHour="
|
return "ClientSettings{" + "maxCacheSizeMib=" + maxCacheSizeMib + ", maxBandwidthMibPerHour="
|
||||||
+ maxBandwidthMibPerHour + ", maxBurstRateKibPerSecond=" + maxBurstRateKibPerSecond + ", clientPort="
|
+ maxBandwidthMibPerHour + ", maxBurstRateKibPerSecond=" + maxBurstRateKibPerSecond + ", clientPort="
|
||||||
+ clientPort + ", clientSecret='" + "<hidden>" + '\'' + ", threadsPerCpu=" + threadsPerCpu + '}';
|
+ clientPort + ", clientSecret='" + "<hidden>" + '\'' + ", threadsPerCpu=" + getThreadsPerCpu() + '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isSecretValid(String clientSecret) {
|
public static boolean isSecretValid(String clientSecret) {
|
||||||
|
|
Loading…
Reference in a new issue