Fixed uptime months calculation
This commit is contained in:
parent
a2646ceb9f
commit
b6e1888e70
12 changed files with 32 additions and 24 deletions
|
@ -77,7 +77,7 @@ class Info(private val tell: Tell, private val seen: Seen) : AbstractCommand() {
|
|||
append(years).append(" year".plural(years)).append(' ')
|
||||
}
|
||||
if (months > 0) {
|
||||
append(weeks).append(" month".plural(months)).append(' ')
|
||||
append(months).append(" month".plural(months)).append(' ')
|
||||
}
|
||||
if (weeks > 0) {
|
||||
append(weeks).append(" week".plural(weeks)).append(' ')
|
||||
|
|
|
@ -49,7 +49,6 @@ class WolframAlpha : ThreadedModule() {
|
|||
override val name = "WolframAlpha"
|
||||
|
||||
private fun getUnits(unit: String?): String {
|
||||
println("--> $unit")
|
||||
return if (unit?.lowercase() == METRIC) {
|
||||
METRIC
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue