Update readme

This commit is contained in:
carbotaniuman 2020-06-16 18:00:28 -05:00
parent 1af4455be6
commit 137414fa77
3 changed files with 10 additions and 5 deletions

View file

@ -8,7 +8,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
### Changed ### Changed
- [2020-06-16] Changed log level of response timings to INFO by [@lflare].
### Deprecated ### Deprecated
@ -18,6 +17,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security ### 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 ## [1.0.0-RC17] - 2020-06-15
### Added ### Added
- [2020-06-15] Added logging of backend assigned URL to logs by [@lflare]. - [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 ### Fixed
- [2020-06-11] Tweaked logging configuration to reduce log file sizes by [@carbotaniuman]. - [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-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-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 [1.0.0-rc15]: https://gitlab.com/mangadex/mangadex_at_home/-/compare/1.0.0-rc14...1.0.0-rc15

View file

@ -133,8 +133,8 @@ public class MangaDexClient {
} }
long currentBytesSent = statistics.get().getBytesSent() - lastBytesSent; long currentBytesSent = statistics.get().getBytesSent() - lastBytesSent;
if (clientSettings.getMaxBandwidthMibPerHour() != 0 if (clientSettings.getMaxBandwidthMibPerHour() != 0 && clientSettings.getMaxBandwidthMibPerHour() * 1024
&& clientSettings.getMaxBandwidthMibPerHour() * 1024 * 1024 /* MiB to bytes */ < currentBytesSent) { * 1024 /* MiB to bytes */ < currentBytesSent) {
if (LOGGER.isInfoEnabled()) { if (LOGGER.isInfoEnabled()) {
LOGGER.info("Shutting down server as hourly bandwidth limit reached"); LOGGER.info("Shutting down server as hourly bandwidth limit reached");
} }

View file

@ -121,7 +121,7 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi
LOGGER.info("Request for $sanitizedUri cached by browser") LOGGER.info("Request for $sanitizedUri cached by browser")
} }
val lastModified = snapshot.getString(2) val lastModified = imageDatum.lastModified
snapshot.close() snapshot.close()
Response(Status.NOT_MODIFIED) Response(Status.NOT_MODIFIED)