From cbf509fced42083feee949398263ac901424572f Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Mon, 10 Aug 2020 17:05:53 -0500 Subject: [PATCH] Start the release train --- CHANGELOG.md | 18 +++++++++++++----- src/main/kotlin/mdnet/base/MangaDexClient.kt | 4 ++-- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a696a5..85e6791 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,22 +6,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added -- [2020-07-13] Added reloading client setting without stopping client by [@radonbark]. ### Changed -- [2020-07-29] Disallow unsafe ports [@m3ch_mania]. ### Deprecated ### Removed +### Fixed + +### Security + +## [1.2.0] - 2020-08-10 +### Added +- [2020-07-13] Added reloading client setting without stopping client by [@radonbark]. + +### Changed +- [2020-07-29] Disallow unsafe ports [@m3ch_mania]. + ### Fixed - [2020-07-29] Fixed stupid libsodium bugs [@carbotaniuman]. - [2020-07-29] Fixed issues from the Great Cache Propagation [@carbotaniuman]. - [2020-08-03] Fix `client_hostname` stuff [@carbotaniuman]. -### Security - ## [1.1.5] - 2020-07-05 ### Added - [2020-07-05] Added basic graph creation interface to dash [@RedMatriz]. @@ -213,7 +220,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - [2020-06-11] Tweaked logging configuration to reduce log file sizes by [@carbotaniuman]. -[Unreleased]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.1.5...HEAD +[Unreleased]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.2.0...HEAD +[1.2.0]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.1.5...1.2.0 [1.1.5]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.1.4...1.1.5 [1.1.4]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.1.3...1.1.4 [1.1.3]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.1.2...1.1.3 diff --git a/src/main/kotlin/mdnet/base/MangaDexClient.kt b/src/main/kotlin/mdnet/base/MangaDexClient.kt index 0220901..2e806b8 100644 --- a/src/main/kotlin/mdnet/base/MangaDexClient.kt +++ b/src/main/kotlin/mdnet/base/MangaDexClient.kt @@ -113,7 +113,7 @@ class MangaDexClient(private val clientSettingsFile: String) { try { cache = DiskLruCache.open( File("cache"), 1, 1, - clientSettings.maxCacheSizeInMebibytes * 1024 * 1024 /* MiB to bytes */ + (clientSettings.maxCacheSizeInMebibytes * 1024 * 1024 * 0.8).toLong() /* MiB to bytes */ ) cache.get("statistics")?.use { try { @@ -387,7 +387,7 @@ class MangaDexClient(private val clientSettingsFile: String) { return } - cache.maxSize = newSettings.maxCacheSizeInMebibytes + cache.maxSize = (newSettings.maxCacheSizeInMebibytes * 1024 * 1024 * 0.8).toLong() // Setting loaded without issue. Figure out // if there are changes that require a restart