Updated dependencies.

This commit is contained in:
Erik C. Thauvin 2021-07-06 17:08:41 -07:00
parent 7c2ad09ff1
commit a8a4500125
13 changed files with 90 additions and 85 deletions

View file

@ -62,8 +62,8 @@ class FeedReader(
send(sender, it)
}
} catch (e: FeedException) {
if (logger.isDebugEnabled) logger.debug("Unabled to parse the feed at $url", e)
send(sender, "An error has occured while parsing the feed: ${e.message}", false)
if (logger.isDebugEnabled) logger.debug("Unable to parse the feed at $url", e)
send(sender, "An error has occurred while parsing the feed: ${e.message}", false)
} catch (e: IOException) {
if (logger.isDebugEnabled) logger.debug("Unable to fetch the feed at $url", e)
send(sender, "An error has occurred while fetching the feed: ${e.message}", false)

View file

@ -260,12 +260,10 @@ object Utils {
days %= 30
val weeks = days / 7
days %= 7
val hours = TimeUnit.MILLISECONDS.toHours(uptime) - TimeUnit.DAYS.toHours(
TimeUnit.MILLISECONDS.toDays(uptime)
)
val minutes = TimeUnit.MILLISECONDS.toMinutes(uptime) - TimeUnit.HOURS.toMinutes(
TimeUnit.MILLISECONDS.toHours(uptime)
)
val hours = TimeUnit.MILLISECONDS.toHours(uptime) - TimeUnit.DAYS.toHours(TimeUnit.MILLISECONDS.toDays(uptime))
val minutes =
TimeUnit.MILLISECONDS.toMinutes(uptime) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(uptime))
with(info) {
if (years > 0) {
append(years).append(" year ".plural(years, " years "))