From 137414fa77d28f6a4c90a8669f85aa53ad0f93bb Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Tue, 16 Jun 2020 18:00:28 -0500 Subject: [PATCH] Update readme --- CHANGELOG.md | 9 +++++++-- src/main/java/mdnet/base/MangaDexClient.java | 4 ++-- src/main/kotlin/mdnet/base/server/ImageServer.kt | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f1c0bd..4d153cc 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### Changed -- [2020-06-16] Changed log level of response timings to INFO by [@lflare]. ### Deprecated @@ -18,6 +17,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security +## [1.0.0-RC18] - 2020-06-16 +### Changed +- [2020-06-16] Changed log level of response timings to INFO by [@lflare]. +- [2020-06-16] Added server ping logging [@carbotaniuman]. + ## [1.0.0-RC17] - 2020-06-15 ### Added - [2020-06-15] Added logging of backend assigned URL to logs by [@lflare]. @@ -93,7 +97,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.0.0-rc17...HEAD +[Unreleased]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.0.0-rc18...HEAD +[1.0.0-rc18]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.0.0-rc17...1.0.0-rc18 [1.0.0-rc17]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.0.0-rc16...1.0.0-rc17 [1.0.0-rc16]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.0.0-rc15...1.0.0-rc16 [1.0.0-rc15]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.0.0-rc14...1.0.0-rc15 diff --git a/src/main/java/mdnet/base/MangaDexClient.java b/src/main/java/mdnet/base/MangaDexClient.java index 777fc01..61af1c4 100644 --- a/src/main/java/mdnet/base/MangaDexClient.java +++ b/src/main/java/mdnet/base/MangaDexClient.java @@ -133,8 +133,8 @@ public class MangaDexClient { } long currentBytesSent = statistics.get().getBytesSent() - lastBytesSent; - if (clientSettings.getMaxBandwidthMibPerHour() != 0 - && clientSettings.getMaxBandwidthMibPerHour() * 1024 * 1024 /* MiB to bytes */ < currentBytesSent) { + if (clientSettings.getMaxBandwidthMibPerHour() != 0 && clientSettings.getMaxBandwidthMibPerHour() * 1024 + * 1024 /* MiB to bytes */ < currentBytesSent) { if (LOGGER.isInfoEnabled()) { LOGGER.info("Shutting down server as hourly bandwidth limit reached"); } diff --git a/src/main/kotlin/mdnet/base/server/ImageServer.kt b/src/main/kotlin/mdnet/base/server/ImageServer.kt index 42e8247..2033686 100644 --- a/src/main/kotlin/mdnet/base/server/ImageServer.kt +++ b/src/main/kotlin/mdnet/base/server/ImageServer.kt @@ -121,7 +121,7 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi LOGGER.info("Request for $sanitizedUri cached by browser") } - val lastModified = snapshot.getString(2) + val lastModified = imageDatum.lastModified snapshot.close() Response(Status.NOT_MODIFIED)